Commit 43bf15d1 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Silences: CID1351396
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 9313fb6a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment