avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 13:34:35 +0000 (15:34 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 5 Sep 2015 13:34:35 +0000 (15:34 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/avf_showfreqs.c

index af32eae..1bbaa92 100644 (file)
@@ -484,7 +484,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
     AVFilterContext *ctx = inlink->dst;
     ShowFreqsContext *s = ctx->priv;
     AVFrame *fin = NULL;
-    int ret;
+    int ret = 0;
 
     av_audio_fifo_write(s->fifo, (void **)in->extended_data, in->nb_samples);
     while (av_audio_fifo_size(s->fifo) >= s->win_size) {