From patchwork Thu Sep 21 13:52:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Lhomme X-Patchwork-Id: 5220 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.36.26 with SMTP id f26csp1972962jaa; Thu, 21 Sep 2017 06:53:08 -0700 (PDT) X-Received: by 10.28.238.73 with SMTP id m70mr1034553wmh.112.1506001988153; Thu, 21 Sep 2017 06:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506001988; cv=none; d=google.com; s=arc-20160816; b=pA5Utt1rTbtHyUlpq1OHalpUzlOJqVMVl9wHfeyuS7LgHFSfDIJa7/s3OVwK5osuuR 9bbCDeE2GaeTC1bNSEUraixpyZzgoOSNBRbUThmtEsnH2CAOkXM921+wHIiVYgWhL/KO osib5EEbb+gwWTo7yOFxuJ95NhmGxglQlsyNbRmJOBdZ11pnpoLP7VBloAmNfXQy3yGy C2jj5sOtWMvFE+KHqqz0wfCpkJo/KFr4iNHgAy1IV0JjcuKLGSxxSxkuWnD0BbbTCMyz B2WDi5yt6CQo8PmXeA5V67XnMjHc6wH1hNw6jCZqcbAflcbVMlk+dHgILA+BZmQDLapA GlAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=0Zw1YOJwxzLvMJo3GeRJtjlRvMhDm6YLMv6puCLei2g=; b=WGmgf7rBjYgvUTMkpXBd7PUdO0pyIEjmDwLJ+hhl7ZR157ilC3+OjkETdae9nuxVao ZjiQz46qjISioGsnlAIWDyKW3/E72ii9UNRGAVZSJovGKAIfmSOpsgNuCE7EazOiwREk lKlbrdlCjRxl6QjaEnJz4uz9pxXN3FgDSnAR2OeccZwWMsthiK7/zfR7YlOfnBlHUVa8 SGzJtNmyNfxkI4wWbH+SyrnVfNDuPRFDeJEA9giFcSQUv7dn3/SJvqQSf5rJGVoUW2zh DWiwPm6OC+LANjWyaCnLcO3aHXzna7BciITWExQ2epuTLqPeAC87bqd7ohOSXMWHUi9q U9YQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Zmz2wRqv; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a203si1318973wmd.173.2017.09.21.06.53.07; Thu, 21 Sep 2017 06:53:08 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Zmz2wRqv; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5EB9C680634; Thu, 21 Sep 2017 16:52:56 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-wr0-f176.google.com (mail-wr0-f176.google.com [209.85.128.176]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 8EC81680155 for ; Thu, 21 Sep 2017 16:52:50 +0300 (EEST) Received: by mail-wr0-f176.google.com with SMTP id m18so4632551wrm.2 for ; Thu, 21 Sep 2017 06:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=rtv4feX5EDyHWjSQSjaGZFevqXcx3/r2DqSMpoMBzP4=; b=Zmz2wRqv8sTyLS6vPRm7I30T89bmDXS2IYb5n40mngpkqF/5Fsvrt+VBkf/IlAB4Tk mM+gWyb3/3pb6RyZEempVUJeRQIrM895GR5lcMIqEq3mJe38dyIohOSRy3BRf/ClLyrW Siv8r8S7pcrj++FmoUA+gJehdBsFNd/gKt91nkSvfy6f+HCDiHyR/6xRa7dG6ZUTDeD6 BgdPiuN+repCNluzcGY3DevWh+EE7z23isNvNwC+DlNDOJoQGIE5L+n/+1R2crH7d6mL SdPXi+CWj5LcCh90Lq4hKHtsJ+yP/zQad9doJnzMvaLvS5RbTQBsQ3mhcG1R7GFh4Dfo u80Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=rtv4feX5EDyHWjSQSjaGZFevqXcx3/r2DqSMpoMBzP4=; b=XF5MbN1wfa84nlw76foMHGWBAolp/zxBrWBrXTbaEGwSoVBiY0qqmnUTnEKwHELIij JwR8sSecpDItBHYnvyViITTXlPP6RjhloNx8GYlg6lKR1U+3fXVp7NkMyfPNcsVs+WxD xkOHbW0htHFlF09SDcZD7uvfhIVQehjmuxHiUp1hbI3hwpOQSBvV/WMbd4JEuztApgXA tHl89mUYyMhsF/PacHb8aW5wrmAw4XKQYXNG/+57s/Al99bx9eu5nzaI3pBpIO7pGsIc h+6fLxs6Rr6Zpic/IR96uI6Llk3ooMncLho4ZDzL8cg+h+caTC530l9DC9ys30qYI6hg oF7Q== X-Gm-Message-State: AHPjjUguDM5NAmXOKKNtEPWMatrxKRvQ/26QsXvHWPwWO05Wa2mnThbs 7BJENpZi1SrAzg68CvA6DMQVxxk= X-Google-Smtp-Source: AOwi7QChYc3D16bPPZqinh0JeRsgmxA9rjr0TRaYU/2C2ojjv+BrS4ah2JNVMeO/tvf4Eh+RFilfsA== X-Received: by 10.223.146.4 with SMTP id 4mr2144420wrj.16.1506001979685; Thu, 21 Sep 2017 06:52:59 -0700 (PDT) Received: from localhost.localdomain (2a01cb0c000ea9000095b705df317edf.ipv6.abo.wanadoo.fr. [2a01:cb0c:e:a900:95:b705:df31:7edf]) by smtp.gmail.com with ESMTPSA id l15sm2363096wmd.23.2017.09.21.06.52.58 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 21 Sep 2017 06:52:58 -0700 (PDT) From: Steve Lhomme To: ffmpeg-devel@ffmpeg.org Date: Thu, 21 Sep 2017 15:52:48 +0200 Message-Id: <20170921135250.716-2-robux4@gmail.com> X-Mailer: git-send-email 2.12.1 In-Reply-To: <20170921135250.716-1-robux4@gmail.com> References: <20170921135250.716-1-robux4@gmail.com> Subject: [FFmpeg-devel] [PATCH 2/4] qsvenc: the return value is not any kind of int, it's a mfxStatus X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavcodec/qsvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 5eb506fb76..772336b719 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/qsvenc.c @@ -989,7 +989,7 @@ static int encode_frame(AVCodecContext *avctx, QSVEncContext *q, mfxSyncPoint *sync = NULL; QSVFrame *qsv_frame = NULL; mfxEncodeCtrl* enc_ctrl = NULL; - int ret; + mfxStatus ret; if (frame) { ret = submit_frame(q, frame, &qsv_frame);