From patchwork Wed Nov 15 09:04:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhong Li X-Patchwork-Id: 6096 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.161.94 with SMTP id m30csp4327853jah; Wed, 15 Nov 2017 01:04:30 -0800 (PST) X-Google-Smtp-Source: AGs4zMa68/R4ZAE5fY8XVSBB7IdJ6+A55U4e9oXcft3nocTUJM2DpNU340zHDQG2qGkdugtJGaPc X-Received: by 10.28.218.132 with SMTP id r126mr6872959wmg.59.1510736670023; Wed, 15 Nov 2017 01:04:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510736669; cv=none; d=google.com; s=arc-20160816; b=vNNiy80xpvYtmtC0DS8fpfdBb88fKlva6XwhvsSJEJesA0CQARH9jDST/Lj3VA3TCs 3SIeJU4nPqi7eeirsA0zz2a8J41dsgIP4KP+BjDGYmnpE5PqITiBHmHWa+HUa5enC3iJ yNDbpDsR+kkkQb2vyHO9R9yelDZjhEnvduKsEk/HCAJ7KdTFin1+BLEuaFcfkIzo+D3P JPrnpBaEQlqELAksz9PxKVdjM7Mf1v6K3XUBV+/jHo7ek0lcjzM67s+x2BN1JgdooNNu S1kK1lrRkg4A64Y4vbGLVMBBI5K4uobHCmadi08fl4oD4tGyijHvuMGV8VMaOLvynQ7l 3/Vw== 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:message-id:date:to:from:delivered-to :arc-authentication-results; bh=8Uas21MIaOTqZxuFrzHw4m9qIwiOefUI1fRHOiVBsYI=; b=ZdtAlYg5stq9ig2+1dw7DfsWWTIx8hYfP5w7L0TyyXI90Si0pvX6DL5mlD292R3Ra8 tVRjqBvDoF06YEBmSMmLH5Nnyuithk+7mXpiS42qb9U3UE0KLCS6wM3dTUiIdrKGQXDj awUVHv1BSCc4N4KlaVR4SZ7fxeq1QLarHdHXEydL9J9mfzpc5zMJTy6fMW/CznALW9uv JZN40FEzLrx0FzfawtkQtzsXguvZIHa0VUOE8vLifgz5esdsyCwSNyFPDbmPsum4OWEr 3oLZt9G/Wvl/s8yCCjXnegoo5CGraSKzLCQp3s1bm90if9uFjErDqTyzzSc4bun5ajHS fKiA== 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 186si8918560wmj.77.2017.11.15.01.04.29; Wed, 15 Nov 2017 01:04:29 -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 DD3EC689DD9; Wed, 15 Nov 2017 11:04:12 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6BACB689C92 for ; Wed, 15 Nov 2017 11:04:06 +0200 (EET) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Nov 2017 01:04:19 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,398,1505804400"; d="scan'208";a="2854993" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.13.23]) by fmsmga001.fm.intel.com with ESMTP; 15 Nov 2017 01:04:18 -0800 From: Zhong Li To: ffmpeg-devel@ffmpeg.org Date: Wed, 15 Nov 2017 04:04:18 -0500 Message-Id: <1510736658-31312-1-git-send-email-zhong.li@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [FFmpeg-devel] [PATCH 3/3] lavf/qsv_vpp: 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_vpp_qsv.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libavfilter/vf_vpp_qsv.c b/libavfilter/vf_vpp_qsv.c index eb2f1cc..bc059cc 100644 --- a/libavfilter/vf_vpp_qsv.c +++ b/libavfilter/vf_vpp_qsv.c @@ -332,6 +332,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *picref) static int query_formats(AVFilterContext *ctx) { + int ret; AVFilterFormats *in_fmts, *out_fmts; static const enum AVPixelFormat in_pix_fmts[] = { AV_PIX_FMT_YUV420P, @@ -349,8 +350,10 @@ static int query_formats(AVFilterContext *ctx) in_fmts = ff_make_format_list(in_pix_fmts); out_fmts = ff_make_format_list(out_pix_fmts); - ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats); - ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats); + if ((ret = ff_formats_ref(in_fmts, &ctx->inputs[0]->out_formats)) < 0) + return ret; + if ((ret = ff_formats_ref(out_fmts, &ctx->outputs[0]->in_formats)) < 0) + return ret; return 0; }