[FFmpeg-cvslog] avfilter/avf_showfreqs: assert that variables are initialized by switch()

Michael Niedermayer git at videolan.org
Fri Feb 12 00:56:45 CET 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Feb 12 00:37:11 2016 +0100| [43bf15d1a425b99182820332ffdf5329773b319a] | committer: Michael Niedermayer

avfilter/avf_showfreqs: assert that variables are initialized by switch()

Silences: CID1351396

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavfilter/avf_showfreqs.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c
index af6e4c2..b33587b 100644
--- a/libavfilter/avf_showfreqs.c
+++ b/libavfilter/avf_showfreqs.c
@@ -310,6 +310,8 @@ static inline void plot_freq(ShowFreqsContext *s, int ch,
         end = (outlink->h / s->nb_channels) * (ch + 1);
         y = (outlink->h / s->nb_channels) * ch + a * (outlink->h / s->nb_channels) - 1;
         break;
+    default:
+        av_assert0(0);
     }
     if (y < 0)
         return;



More information about the ffmpeg-cvslog mailing list