aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/af_crossfeed.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2019-05-01 12:31:52 +0200
committerPaul B Mahol <onemda@gmail.com>2019-05-01 12:31:52 +0200
commitd010bfad3179e7bfeb4f8f0343e856966ea7171b (patch)
treeb6e653242b9b2e3e24fa76f1c60812e323c9b39a /libavfilter/af_crossfeed.c
parent19af948e53fb8a8d26eb57785420feffd91b619d (diff)
downloadffmpeg-d010bfad3179e7bfeb4f8f0343e856966ea7171b.tar.gz
avfilter/af_crossfeed: add timeline support
Diffstat (limited to 'libavfilter/af_crossfeed.c')
-rw-r--r--libavfilter/af_crossfeed.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavfilter/af_crossfeed.c b/libavfilter/af_crossfeed.c
index beee67964d..c819ca59a7 100644
--- a/libavfilter/af_crossfeed.c
+++ b/libavfilter/af_crossfeed.c
@@ -119,8 +119,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
s->o2 = s->o1;
s->o1 = oside;
- dst[0] = (mid + oside) * level_out;
- dst[1] = (mid - oside) * level_out;
+ if (ctx->is_disabled) {
+ dst[0] = src[0];
+ dst[1] = src[1];
+ } else {
+ dst[0] = (mid + oside) * level_out;
+ dst[1] = (mid - oside) * level_out;
+ }
}
if (out != in)
@@ -167,4 +172,5 @@ AVFilter ff_af_crossfeed = {
.priv_class = &crossfeed_class,
.inputs = inputs,
.outputs = outputs,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
};