From patchwork Wed Nov 15 05:10:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhong Li X-Patchwork-Id: 6081 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp4152251jah; Tue, 14 Nov 2017 21:10:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMaQ4/r7mBH39dMODWiEaXDng9tmuXBkcMKS7ZxaF63SXOTCMlkzqPCOVx/pKhn84IQdLE9v X-Received: by 10.223.188.147 with SMTP id g19mr12645339wrh.250.1510722623695; Tue, 14 Nov 2017 21:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510722623; cv=none; d=google.com; s=arc-20160816; b=Yb8EF3Tl1XX/iU+sD/GVWeTvCZWa1kwBhlqJkCnhvEzb9wVDZ7cX06mlUtasKF+/1x kp5WdjXG9m256LiGKyVN8j0Xl1WJR/gA9RyuQhFWiRDIN/zY0Di21I+JYJpg03hf9Ra+ p91KIIX5Xz1YQnM0Jz2Vzr7f0qttoGwxKmb93UWTwWozDhwI2jrOixZfFQocl97NpwIF V+ohVAzzJozrXYNrK2jpO1IR0P9JGaKj3tyKZQsdwracGc8IUJG+6UE09AEVfJoUnNb6 q17L7npI4GeG3qOkiJb4ixQBJRQsqmVwfpVHrcZxb25oBLZJQaE97y4uygidspboJkli CA+g== 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:cc: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:delivered-to:arc-authentication-results; bh=J8iCY3R5rJdCNSThfbSEScAgXU6Eii5PKXornAPBkV8=; b=CQCmEhK36qwpQ4kqNu6p4O12XCclUy666ezV/hjDGtRwcLKxGHM5vD2KLoF4EJndgW wRX1UpuW2H6sr31Q9CNkStWdBSYMS0ecY0XtUVIKeAYFj3/8AFDKwNP4P1NQoFmqLuMF Dd1q9+pJeKdkeGg6DUXCwcdNm5zU/PSgpZgdE/3eQvyJBEG/fukxliX3V8HTP//ROQj2 hmGzZVS0b7JxM/l9EUNlRXc0Dzujnw57JF7ic11zVMv13DFbe9PqsntylNk2FACc7kFp LtrcLxd3hlTsIs1Fvo9R4A6TQWVtZ2tIvLDUMJ4J/YLdsMH7HzPhTkUTVq68IUpPNsYB rHfA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id b200si1031687wme.118.2017.11.14.21.10.23; Tue, 14 Nov 2017 21:10:23 -0800 (PST) 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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A7BA468A02A; Wed, 15 Nov 2017 07:10:05 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 0774C689FE2 for ; Wed, 15 Nov 2017 07:09:58 +0200 (EET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Nov 2017 21:10:07 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,398,1505804400"; d="scan'208";a="2002936" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.13.23]) by FMSMGA003.fm.intel.com with ESMTP; 14 Nov 2017 21:10:06 -0800 From: Zhong Li To: ffmpeg-devel@ffmpeg.org Date: Wed, 15 Nov 2017 00:10:04 -0500 Message-Id: <1510722604-7874-2-git-send-email-zhong.li@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1510722604-7874-1-git-send-email-zhong.li@intel.com> References: <1510722604-7874-1-git-send-email-zhong.li@intel.com> Subject: [FFmpeg-devel] [PATCH 2/2] lavf/qsv_overlay: fix compiling warning 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 Cc: Zhong Li MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" fix the compiling warning of "ignoring return value" Signed-off-by: Zhong Li --- libavfilter/vf_overlay_qsv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 1f50d4b..001a1c3 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -415,6 +415,7 @@ static void overlay_qsv_uninit(AVFilterContext *ctx) static int overlay_qsv_query_formats(AVFilterContext *ctx) { int i; + int ret; static const enum AVPixelFormat main_in_fmts[] = { AV_PIX_FMT_YUV420P, @@ -431,9 +432,11 @@ static int overlay_qsv_query_formats(AVFilterContext *ctx) }; for (i = 0; i < ctx->nb_inputs; i++) - ff_formats_ref(ff_make_format_list(main_in_fmts), &ctx->inputs[i]->out_formats); + if ((ret = ff_formats_ref(ff_make_format_list(main_in_fmts), &ctx->inputs[i]->out_formats)) < 0) + return ret; - ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats); + if ((ret = ff_formats_ref(ff_make_format_list(out_pix_fmts), &ctx->outputs[0]->in_formats)) < 0) + return ret; return 0; }