avfilter/af_afir: fix hang because video is first requested
authorPaul B Mahol <onemda@gmail.com>
Fri, 9 Nov 2018 17:48:29 +0000 (18:48 +0100)
committerPaul B Mahol <onemda@gmail.com>
Fri, 9 Nov 2018 17:51:21 +0000 (18:51 +0100)
libavfilter/af_afir.c

index efdd6bb..36fde60 100644 (file)
@@ -474,6 +474,8 @@ static int activate(AVFilterContext *ctx)
         if (!s->eof_coeffs) {
             if (ff_outlink_frame_wanted(ctx->outputs[0]))
                 ff_inlink_request_frame(ctx->inputs[1]);
+            else if (s->response && ff_outlink_frame_wanted(ctx->outputs[1]))
+                ff_inlink_request_frame(ctx->inputs[1]);
             return 0;
         }
     }