diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-05-01 14:13:29 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-05-09 22:21:39 +0200 |
commit | fe57904a71fde486237595c47ba8fee072c4aa5c (patch) | |
tree | d371f63a02d5e8956769f66492dc06523a3a1ff4 /libavfilter | |
parent | 36c274057a9157c8a6a7335dca8ac82678a25b63 (diff) | |
download | ffmpeg-fe57904a71fde486237595c47ba8fee072c4aa5c.tar.gz |
avfilter/af_afftdn: request new frames only when needed
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/af_afftdn.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/af_afftdn.c b/libavfilter/af_afftdn.c index 1b6487a102..cdb256fa10 100644 --- a/libavfilter/af_afftdn.c +++ b/libavfilter/af_afftdn.c @@ -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); |