[FFmpeg-cvslog] avfilter/af_asdr: add timeline support

Paul B Mahol git at videolan.org
Sun Apr 30 13:41:06 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Apr 30 12:18:16 2023 +0200| [4f63e049a2358cc9a22c2344810eff389aa78d85] | committer: Paul B Mahol

avfilter/af_asdr: add timeline support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4f63e049a2358cc9a22c2344810eff389aa78d85
---

 libavfilter/af_asdr.c | 6 ++++--
 1 file 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),



More information about the ffmpeg-cvslog mailing list