summaryrefslogtreecommitdiff
path: root/libavfilter/avf_showfreqs.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-12 00:37:11 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-12 00:37:11 +0100
commit43bf15d1a425b99182820332ffdf5329773b319a (patch)
tree8d840b1cf63845d831b88f24a9b2a6ff4f211d6b /libavfilter/avf_showfreqs.c
parent9313fb6a3e90e4c21258b69514e2129d9dae1f5f (diff)
avfilter/avf_showfreqs: assert that variables are initialized by switch()
Silences: CID1351396 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/avf_showfreqs.c')
-rw-r--r--libavfilter/avf_showfreqs.c2
1 files changed, 2 insertions, 0 deletions
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;