ffmpeg | branch: master | Paul B Mahol <one...@gmail.com> | Sun Feb 27 16:52:48 
2022 +0100| [b15c26a22cfad3d8c677bb397c734f88607f07ea] | committer: Paul B Mahol

avfilter/af_acrusher: add timeline support

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

 libavfilter/af_acrusher.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/af_acrusher.c b/libavfilter/af_acrusher.c
index 14d66e88ea..6295646c04 100644
--- a/libavfilter/af_acrusher.c
+++ b/libavfilter/af_acrusher.c
@@ -248,7 +248,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
             double sample = src[c] * level_in;
 
             sample = mix * samplereduction(s, &s->sr[c], sample) + src[c] * 
(1. - mix) * level_in;
-            dst[c] = bitreduction(s, sample) * level_out;
+            dst[c] = ctx->is_disabled ? src[c] : bitreduction(s, sample) * 
level_out;
         }
         src += c;
         dst += c;
@@ -342,4 +342,5 @@ const AVFilter ff_af_acrusher = {
     FILTER_OUTPUTS(avfilter_af_acrusher_outputs),
     FILTER_SINGLE_SAMPLEFMT(AV_SAMPLE_FMT_DBL),
     .process_command = process_command,
+    .flags         = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
 };

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to