1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-29 00:10:04 +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:
Michael Niedermayer 2016-02-12 00:37:11 +01:00
parent 9313fb6a3e
commit 43bf15d1a4

View File

@ -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;