[FFmpeg-cvslog] avfilter/avf_avectorscope: Assert that format is valid

Michael Niedermayer git at videolan.org
Sat Apr 22 21:08:59 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Apr 20 19:58:59 2017 +0200| [362f6c91e466b2114d0827c6d58e26e121ed11e8] | committer: Michael Niedermayer

avfilter/avf_avectorscope: Assert that format is valid

This should help coverity realize that src[] is inited

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=362f6c91e466b2114d0827c6d58e26e121ed11e8
---

 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) {



More information about the ffmpeg-cvslog mailing list