aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_asdr.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-11-28 12:19:08 +0100
committerPaul B Mahol <onemda@gmail.com>2023-11-28 13:16:18 +0100
commitc979ccdfd77e0e8ebaa1604dbc2a11497f24cf97 (patch)
tree67da8f5c429a869cd157e26448780f4e3a5496a0 /libavfilter/af_asdr.c
parent66a02a85088fa8796045a305722f611df8901439 (diff)
downloadffmpeg-c979ccdfd77e0e8ebaa1604dbc2a11497f24cf97.tar.gz
avfilter: no need to request more samples if internal frame is available
Diffstat (limited to 'libavfilter/af_asdr.c')
-rw-r--r--libavfilter/af_asdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_asdr.c b/libavfilter/af_asdr.c
index 3942f48053..bb5c30faba 100644
--- a/libavfilter/af_asdr.c
+++ b/libavfilter/af_asdr.c
@@ -186,11 +186,11 @@ static int activate(AVFilterContext *ctx)
if (ff_outlink_frame_wanted(outlink)) {
for (int i = 0; i < 2; i++) {
- if (ff_inlink_queued_samples(ctx->inputs[i]) > 0)
+ if (s->cache[i] || ff_inlink_queued_samples(ctx->inputs[i]) > 0)
continue;
ff_inlink_request_frame(ctx->inputs[i]);
+ return 0;
}
- return 0;
}
return FFERROR_NOT_READY;