From 0a8a0c96ae2af5886200b06a12d919547ce35954 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 11 Sep 2021 22:08:32 +0200 Subject: [PATCH] avfilter/f_loop: initialize ret to silence compiler warning --- 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));