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

Paul B Mahol git at videolan.org
Wed May 1 14:00:20 EEST 2019


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Wed May  1 12:40:25 2019 +0200| [01204c04b025dbc365cda18dbe406fd091a54613] | committer: Paul B Mahol

avfilter/af_stereowiden: add timeline support

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

 libavfilter/af_stereowiden.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_stereowiden.c b/libavfilter/af_stereowiden.c
index ef16fcec73..d23c8dba75 100644
--- a/libavfilter/af_stereowiden.c
+++ b/libavfilter/af_stereowiden.c
@@ -113,8 +113,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         if (s->cur == s->buffer + s->length)
             s->cur = s->buffer;
 
-        dst[0] = drymix * left - crossfeed * right - feedback * s->cur[1];
-        dst[1] = drymix * right - crossfeed * left - feedback * s->cur[0];
+        if (ctx->is_disabled) {
+            dst[0] = left;
+            dst[1] = right;
+        } else {
+            dst[0] = drymix * left - crossfeed * right - feedback * s->cur[1];
+            dst[1] = drymix * right - crossfeed * left - feedback * s->cur[0];
+        }
 
         s->cur[0] = left;
         s->cur[1] = right;
@@ -159,4 +164,5 @@ AVFilter ff_af_stereowiden = {
     .uninit         = uninit,
     .inputs         = inputs,
     .outputs        = outputs,
+    .flags          = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
 };



More information about the ffmpeg-cvslog mailing list