mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
avfilter/af_crossfeed: add timeline support
This commit is contained in:
parent
19af948e53
commit
d010bfad31
@ -119,9 +119,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
s->o2 = s->o1;
|
s->o2 = s->o1;
|
||||||
s->o1 = oside;
|
s->o1 = oside;
|
||||||
|
|
||||||
|
if (ctx->is_disabled) {
|
||||||
|
dst[0] = src[0];
|
||||||
|
dst[1] = src[1];
|
||||||
|
} else {
|
||||||
dst[0] = (mid + oside) * level_out;
|
dst[0] = (mid + oside) * level_out;
|
||||||
dst[1] = (mid - oside) * level_out;
|
dst[1] = (mid - oside) * level_out;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (out != in)
|
if (out != in)
|
||||||
av_frame_free(&in);
|
av_frame_free(&in);
|
||||||
@ -167,4 +172,5 @@ AVFilter ff_af_crossfeed = {
|
|||||||
.priv_class = &crossfeed_class,
|
.priv_class = &crossfeed_class,
|
||||||
.inputs = inputs,
|
.inputs = inputs,
|
||||||
.outputs = outputs,
|
.outputs = outputs,
|
||||||
|
.flags = AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user