Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-12-04 17:22:06 +0300
committerPaul B Mahol <onemda@gmail.com>2020-12-04 17:40:42 +0300
commiteebf19ccd8845f472c79a66542e8cace0c95d230 (patch)
treed27c02f97d60e040c7afdb06c72b9d7dd524b694 /libavfilter/af_stereotools.c
parent456146356a524ca7ff6ca148ee4c19fc66ee531e (diff)
avfilter/af_stereotools: add timeline support
Diffstat (limited to 'libavfilter/af_stereotools.c')
-rw-r--r--libavfilter/af_stereotools.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/libavfilter/af_stereotools.c b/libavfilter/af_stereotools.c
index 94e9b150dd..59ed44872e 100644
--- a/libavfilter/af_stereotools.c
+++ b/libavfilter/af_stereotools.c
@@ -327,8 +327,13 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
L *= level_out;
R *= level_out;
- dst[0] = L;
- dst[1] = R;
+ if (ctx->is_disabled) {
+ dst[0] = src[0];
+ dst[1] = src[1];
+ } else {
+ dst[0] = L;
+ dst[1] = R;
+ }
}
if (out != in)
@@ -370,4 +375,5 @@ AVFilter ff_af_stereotools = {
.uninit = uninit,
.inputs = inputs,
.outputs = outputs,
+ .flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
};