mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 02:12:28 +00:00
avfilter/af_afftdn: request new frames only when needed
This commit is contained in:
parent
36c274057a
commit
fe57904a71
@ -1154,6 +1154,11 @@ static int activate(AVFilterContext *ctx)
|
||||
if (ret > 0)
|
||||
return output_frame(inlink, in);
|
||||
|
||||
if (ff_inlink_queued_samples(inlink) >= s->sample_advance) {
|
||||
ff_filter_set_ready(ctx, 10);
|
||||
return 0;
|
||||
}
|
||||
|
||||
FF_FILTER_FORWARD_STATUS(inlink, outlink);
|
||||
FF_FILTER_FORWARD_WANTED(outlink, inlink);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user