diff options
author | Paul B Mahol <onemda@gmail.com> | 2019-05-01 12:40:25 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2019-05-01 12:40:25 +0200 |
commit | 01204c04b025dbc365cda18dbe406fd091a54613 (patch) | |
tree | 3f4891651037236faf1db117589f5efdf0c8bf9a | |
parent | 0ee65ea95c0382aca05177b596d8f2751cce93de (diff) | |
download | ffmpeg-01204c04b025dbc365cda18dbe406fd091a54613.tar.gz |
avfilter/af_stereowiden: add timeline support
-rw-r--r-- | libavfilter/af_stereowiden.c | 10 |
1 files 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, }; |