From patchwork Thu May 24 08:34:32 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhong Li X-Patchwork-Id: 9069 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:155:0:0:0:0:0 with SMTP id c82-v6csp1810672jad; Thu, 24 May 2018 01:37:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoOX7Nw76id2cbTXat0HCrDK9QD59EJrrlT/Xi6tS43HesohosZ3hDdl1kJDzu++i4bOAUd X-Received: by 2002:adf:c32b:: with SMTP id n40-v6mr5291001wrf.91.1527151062405; Thu, 24 May 2018 01:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527151062; cv=none; d=google.com; s=arc-20160816; b=GM4SskClxPHBEvJVqnMZiv7cxx7CE1b9XD18nmaZ1/HnmUu6o7u5Tu3EXd68naY8wq sNvnjr1NMF3PFtq7k7tVP0BOBonH6AymcvlvKoHMcmHJS6Ei6ViP9nxwIngwT8NJOW/T 7AVdAuiBCJYVaGF1IR2wp+XLQQQlrh5MB0rk7WKcyqz+HeQGI4u4DzA0lOBLyMbUZEGd dVd+gUt4t8GmfhjmzPlcyUfGb0zgQ5hB5yrQ1sUYiNTD2q1h47C2pnAxqD3FI6vrMdDe pHrwGjkzJ8Z2STdvmIl+RJcj1dwAMLQxanly8HePqCYKxYlNiLjfG2ihuAtW7GN15S6T 5M3A== 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=LwrZhppjDokdwn3mnnPucQbiZDBVQ3UlMN98415zkmQ=; b=q8GF5R/Eqm2YsRfqHqllZFVMKz37S3icc3GjEEs4fFFEzTqL+mhbN4c2r89D7tyuAN wX1ZgB8/Hc5T0evdaFtAwIj0F3gZ4UNUzMJ8jv15Q30m18vQsUqHOo+Y4MQzWLUq9Hpg ttZKHmkH0uSGMktweQ1JBV4+PLWvAFY43gCnxnUCSEoGFgm+h/O0DL9Ao5lLNN0mCMF+ is6XMEB/Id5ST9aHik5NBeUMhoa7b44afwKquqrVWH9uplYNZeizC42845eRNUg3s/xn 4PkyNUDefw8p/81Fy8mx/dHIgEWVQAN3HBz69vUXWvkMWuPotxHmONh3Rv1RkoIRziJA GD1w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id x16-v6si2154238wrp.90.2018.05.24.01.37.42; Thu, 24 May 2018 01:37:42 -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; 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=intel.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3633F68A30C; Thu, 24 May 2018 11:36:59 +0300 (EEST) 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 37FEA68988D for ; Thu, 24 May 2018 11:36:52 +0300 (EEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 May 2018 01:37:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,436,1520924400"; d="scan'208";a="43540625" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.239.13.18]) by orsmga007.jf.intel.com with ESMTP; 24 May 2018 01:37:31 -0700 From: Zhong Li To: ffmpeg-devel@ffmpeg.org Date: Thu, 24 May 2018 16:34:32 +0800 Message-Id: <1527150873-31279-1-git-send-email-zhong.li@intel.com> X-Mailer: git-send-email 1.8.3.1 Subject: [FFmpeg-devel] [PATCH 1/2] lavc/qsv_overlay: suppress code scan complain 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" Suppress the complain "variables 'pix_fmt' is used but maybe uninitialized". Signed-off-by: Zhong Li --- libavfilter/vf_overlay_qsv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/vf_overlay_qsv.c b/libavfilter/vf_overlay_qsv.c index 2087178..9aabb59 100644 --- a/libavfilter/vf_overlay_qsv.c +++ b/libavfilter/vf_overlay_qsv.c @@ -160,7 +160,7 @@ release: static int have_alpha_planar(AVFilterLink *link) { - enum AVPixelFormat pix_fmt; + enum AVPixelFormat pix_fmt = link->format; const AVPixFmtDescriptor *desc; AVHWFramesContext *fctx;