diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-04-30 15:36:39 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-04-30 15:41:46 +0200 |
commit | a9e9020ff6eb92fb36b35a53c27719aeedfc6a8a (patch) | |
tree | 2f3572902d0020f981df5c6a206efc2169a5e2cd /libavfilter/af_surround.c | |
parent | d8e8aa944aa633dbb1990c4d33654234aaf0d312 (diff) | |
download | ffmpeg-a9e9020ff6eb92fb36b35a53c27719aeedfc6a8a.tar.gz |
avfilter/af_surround: request new frames only when needed
Diffstat (limited to 'libavfilter/af_surround.c')
-rw-r--r-- | libavfilter/af_surround.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavfilter/af_surround.c b/libavfilter/af_surround.c index 4599dd1601..858fed609a 100644 --- a/libavfilter/af_surround.c +++ b/libavfilter/af_surround.c @@ -1633,6 +1633,11 @@ static int activate(AVFilterContext *ctx) if (ret < 0) return ret; + if (ff_inlink_queued_samples(inlink) >= s->hop_size) { + ff_filter_set_ready(ctx, 10); + return 0; + } + if (ff_inlink_acknowledge_status(inlink, &status, &pts)) { ff_outlink_set_status(outlink, status, pts); return 0; |