[FFmpeg-devel] [PATCH] avfilter/avf_avectorscope: Assert that format is valid
Michael Niedermayer
michael at niedermayer.cc
Thu Apr 20 20:58:59 EEST 2017
This should help coverity realize that src[] is inited
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
---
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) {
--
2.11.0
More information about the ffmpeg-devel
mailing list