aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-04-30 12:18:16 +0200
committerPaul B Mahol <onemda@gmail.com>2023-04-30 12:38:02 +0200
commit4f63e049a2358cc9a22c2344810eff389aa78d85 (patch)
treeb1ffa5c02ea9e3fdea3b315ea322f5dcacf46d29
parenta47bd6d3d896038f265b9ff6fb4f5f3a8ef8b0fc (diff)
downloadffmpeg-4f63e049a2358cc9a22c2344810eff389aa78d85.tar.gz
avfilter/af_asdr: add timeline support
-rw-r--r--libavfilter/af_asdr.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/af_asdr.c b/libavfilter/af_asdr.c
index 14bc0097af..5c7e2bbfe4 100644
--- a/libavfilter/af_asdr.c
+++ b/libavfilter/af_asdr.c
@@ -79,7 +79,8 @@ static int activate(AVFilterContext *ctx)
}
}
- sdr(ctx, s->cache[0], s->cache[1]);
+ if (!ctx->is_disabled)
+ sdr(ctx, s->cache[0], s->cache[1]);
av_frame_free(&s->cache[1]);
out = s->cache[0];
@@ -168,7 +169,8 @@ const AVFilter ff_af_asdr = {
.priv_size = sizeof(AudioSDRContext),
.activate = activate,
.uninit = uninit,
- .flags = AVFILTER_FLAG_METADATA_ONLY,
+ .flags = AVFILTER_FLAG_METADATA_ONLY |
+ AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
FILTER_INPUTS(inputs),
FILTER_OUTPUTS(outputs),
FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBLP),