avfilter/avf_showfreqs: assert that variables are initialized by switch()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2016 23:37:11 +0000 (00:37 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 11 Feb 2016 23:37:11 +0000 (00:37 +0100)
Silences: CID1351396

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_showfreqs.c

index af6e4c2..b33587b 100644 (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;