mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 11:39:49 +00:00
avfilter/vf_xfade: drop unused frames from inactive inputs
This commit is contained in:
parent
1d61a31497
commit
2aece147d5
@ -1851,6 +1851,11 @@ static int xfade_activate(AVFilterContext *ctx)
|
||||
FF_FILTER_FORWARD_STATUS_BACK_ALL(outlink, ctx);
|
||||
|
||||
if (s->xfade_is_over) {
|
||||
if (!s->eof[0]) {
|
||||
ret = ff_inlink_consume_frame(ctx->inputs[0], &in);
|
||||
if (ret > 0)
|
||||
av_frame_free(&in);
|
||||
}
|
||||
ret = ff_inlink_consume_frame(ctx->inputs[1], &in);
|
||||
if (ret < 0) {
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user