avfilter/avf_avectorscope: Assert that format is valid
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Apr 2017 17:58:59 +0000 (19:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 22 Apr 2017 18:08:45 +0000 (20:08 +0200)
This should help coverity realize that src[] is inited

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_avectorscope.c

index 3063283..c6e278d 100644 (file)
@@ -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) {