You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avfilter/avf_showfreqs: assert that variables are initialized by switch()
Silences: CID1351396 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user