avfilter/af_afir: fix hang because video is first requested

This commit is contained in:
Paul B Mahol 2018-11-09 18:48:29 +01:00
parent 16d91b7e99
commit 29fdaaa80d
1 changed files with 2 additions and 0 deletions

View 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;
}
}