[FFmpeg-cvslog] avfilter/f_loop: initialize ret to silence compiler warning

Paul B Mahol git at videolan.org
Sat Sep 11 23:21:09 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Sep 11 22:08:32 2021 +0200| [0a8a0c96ae2af5886200b06a12d919547ce35954] | committer: Paul B Mahol

avfilter/f_loop: initialize ret to silence compiler warning

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0a8a0c96ae2af5886200b06a12d919547ce35954
---

 libavfilter/f_loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_loop.c b/libavfilter/f_loop.c
index 29c9f28afc..f8ae4a6a3a 100644
--- a/libavfilter/f_loop.c
+++ b/libavfilter/f_loop.c
@@ -93,7 +93,7 @@ static int push_samples(AVFilterContext *ctx, int nb_samples)
     AVFilterLink *outlink = ctx->outputs[0];
     LoopContext *s = ctx->priv;
     AVFrame *out;
-    int ret, i = 0;
+    int ret = 0, i = 0;
 
     while (s->loop != 0 && i < nb_samples) {
         out = ff_get_audio_buffer(outlink, FFMIN(nb_samples, s->nb_samples - s->current_sample));



More information about the ffmpeg-cvslog mailing list