ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>

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

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to