[FFmpeg-cvslog] avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning
Michael Niedermayer
git at videolan.org
Sat Sep 5 15:47:48 CEST 2015
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Sep 5 15:34:35 2015 +0200| [0ada8ec1a50c0ec157988f0a166adf977b482d37] | committer: Michael Niedermayer
avfilter/avf_showfreqs: Fix "may be used uninitialized in this function" warning
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0ada8ec1a50c0ec157988f0a166adf977b482d37
---
libavfilter/avf_showfreqs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/avf_showfreqs.c b/libavfilter/avf_showfreqs.c
index af32eae..1bbaa92 100644
--- a/libavfilter/avf_showfreqs.c
+++ b/libavfilter/avf_showfreqs.c
@@ -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) {
More information about the ffmpeg-cvslog
mailing list