[FFmpeg-devel] [PATCH] avfilter/af_amix: fix possible hang

Paul B Mahol onemda at gmail.com
Sun Jun 18 19:39:33 EEST 2017


Fixes #6424.

Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavfilter/af_amix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_amix.c b/libavfilter/af_amix.c
index 9fe505b..e06c753 100644
--- a/libavfilter/af_amix.c
+++ b/libavfilter/af_amix.c
@@ -288,7 +288,7 @@ static int output_frame(AVFilterLink *outlink)
                 if (ns < nb_samples) {
                     if (!(s->input_state[i] & INPUT_EOF))
                         /* unclosed input with not enough samples */
-                        return 0;
+                        return ff_request_frame(ctx->inputs[i]);
                     /* closed input to drain */
                     nb_samples = ns;
                 }
-- 
2.9.3



More information about the ffmpeg-devel mailing list