From patchwork Thu Apr 20 17:58:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Niedermayer X-Patchwork-Id: 3455 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.3.129 with SMTP id 123csp920575vsd; Thu, 20 Apr 2017 10:59:20 -0700 (PDT) X-Received: by 10.28.137.20 with SMTP id l20mr4331331wmd.6.1492711160202; Thu, 20 Apr 2017 10:59:20 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id 63si6676638wml.91.2017.04.20.10.59.19; Thu, 20 Apr 2017 10:59:20 -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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1D60868991A; Thu, 20 Apr 2017 20:59:07 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from vie01a-dmta-pe01-3.mx.upcmail.net (vie01a-dmta-pe01-3.mx.upcmail.net [62.179.121.156]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 49F1C689886 for ; Thu, 20 Apr 2017 20:59:01 +0300 (EEST) Received: from [172.31.216.43] (helo=vie01a-pemc-psmtp-pe01) by vie01a-dmta-pe01.mx.upcmail.net with esmtp (Exim 4.88) (envelope-from ) id 1d1GMH-00045T-OQ for ffmpeg-devel@ffmpeg.org; Thu, 20 Apr 2017 19:59:09 +0200 Received: from localhost ([213.47.41.20]) by vie01a-pemc-psmtp-pe01 with SMTP @ mailcloud.upcmail.net id Ahz01v00d0S5wYM01hz1Cn; Thu, 20 Apr 2017 19:59:01 +0200 X-SourceIP: 213.47.41.20 From: Michael Niedermayer To: FFmpeg development discussions and patches Date: Thu, 20 Apr 2017 19:58:59 +0200 Message-Id: <20170420175859.10938-1-michael@niedermayer.cc> X-Mailer: git-send-email 2.11.0 Subject: [FFmpeg-devel] [PATCH] avfilter/avf_avectorscope: Assert that format is valid 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" This should help coverity realize that src[] is inited Signed-off-by: Michael Niedermayer --- libavfilter/avf_avectorscope.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c index 3063283efb..c6e278d30d 100644 --- a/libavfilter/avf_avectorscope.c +++ b/libavfilter/avf_avectorscope.c @@ -267,6 +267,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) src[0] = samplesf[0]; src[1] = samplesf[1]; break; + default: + av_assert2(0); } switch (s->scale) {