[FFmpeg-cvslog] avfilter/avf_ahistogram: assert that variables are initialized by switch()
Michael Niedermayer
git at videolan.org
Fri Feb 12 00:56:46 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Feb 12 00:37:11 2016 +0100| [156013111a3389a3f0c1af33dfaa008824e30727] | committer: Michael Niedermayer
avfilter/avf_ahistogram: assert that variables are initialized by switch()
Silences: CID1351397
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=156013111a3389a3f0c1af33dfaa008824e30727
---
libavfilter/avf_ahistogram.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c
index 55f7462..a716a96 100644
--- a/libavfilter/avf_ahistogram.c
+++ b/libavfilter/avf_ahistogram.c
@@ -297,6 +297,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (aa == 1.)
aa = 0;
break;
+ default:
+ av_assert0(0);
}
h = aa * (H - 1);
More information about the ffmpeg-cvslog
mailing list