mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 13:30:45 +00:00
avfilter/vf_mix: add timeline support
This commit is contained in:
parent
e28b6e0448
commit
3583d2a837
@ -201,6 +201,14 @@ static int process_frame(FFFrameSync *fs)
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (ctx->is_disabled) {
|
||||
out = av_frame_clone(s->frames[0]);
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base);
|
||||
return ff_filter_frame(outlink, out);
|
||||
}
|
||||
|
||||
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
|
||||
if (!out)
|
||||
return AVERROR(ENOMEM);
|
||||
@ -337,7 +345,8 @@ AVFilter ff_vf_mix = {
|
||||
.init = init,
|
||||
.uninit = uninit,
|
||||
.activate = activate,
|
||||
.flags = AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS,
|
||||
.flags = AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS |
|
||||
AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL,
|
||||
};
|
||||
|
||||
#endif /* CONFIG_MIX_FILTER */
|
||||
|
Loading…
Reference in New Issue
Block a user