From 43bf15d1a425b99182820332ffdf5329773b319a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 12 Feb 2016 00:37:11 +0100 Subject: [PATCH] avfilter/avf_showfreqs: assert that variables are initialized by switch() Silences: CID1351396 Signed-off-by: Michael Niedermayer --- libavfilter/avf_showfreqs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c index af6e4c2a53..b33587b318 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;