Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -201,6 +201,14 @@ static int process_frame(FFFrameSync *fs) · 200 unmodified lines | ||
| 201 | 201 | return ret; |
| 202 | 202 | } |
| 203 | 203 | |
| 204 | + if (ctx->is_disabled) { | |
| 205 | + out = av_frame_clone(s->frames[0]); | |
| 206 | + if (!out) | |
| 207 | + return AVERROR(ENOMEM); | |
| 208 | + out->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); | |
| 209 | + return ff_filter_frame(outlink, out); | |
| 210 | + } | |
| 211 | + | |
| 204 | 212 | out = ff_get_video_buffer(outlink, outlink->w, outlink->h); |
| 205 | 213 | if (!out) |
| 206 | 214 | return AVERROR(ENOMEM); |
| @@ -337,7 +345,8 @@ AVFilter ff_vf_mix = { · 130 unmodified lines | ||
| 337 | 345 | .init = init, |
| 338 | 346 | .uninit = uninit, |
| 339 | 347 | .activate = activate, |
| 340 | − .flags = AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS, | |
| 348 | + .flags = AVFILTER_FLAG_DYNAMIC_INPUTS | AVFILTER_FLAG_SLICE_THREADS | | |
| 349 | + AVFILTER_FLAG_SUPPORT_TIMELINE_INTERNAL, | |
| 341 | 350 | }; |
| 342 | 351 | |
| 343 | 352 | #endif /* CONFIG_MIX_FILTER */ |