[FFmpeg-trac] #6424(avfilter:closed): endless loop in avfilter.c
FFmpeg
trac at avcodec.org
Thu Jun 22 10:58:40 EEST 2017
#6424: endless loop in avfilter.c
-------------------------------------+-------------------------------------
Reporter: tinybug | Owner:
Type: defect | Status: closed
Priority: important | Component: avfilter
Version: git-master | Resolution: fixed
Keywords: deadlock | Blocked By:
regression | Reproduced by developer: 1
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by richardpl):
Try this patch:
{{{
diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index f19e6b3..c0609d8 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -313,7 +313,7 @@ static int output_frame(AVFilterLink *outlink, int
need_request)
calculate_scales(s, nb_samples);
if (nb_samples == 0)
- return 0;
+ return need_request ? ff_request_frame(ctx->inputs[1]) : 0;
out_buf = ff_get_audio_buffer(outlink, nb_samples);
if (!out_buf)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6424#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list