[FFmpeg-cvslog] avfilter/vf_xfade: drop unused frames from inactive inputs
Paul B Mahol
git at videolan.org
Sun Mar 14 14:15:43 EET 2021
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Mar 14 13:06:50 2021 +0100| [2aece147d594f78afc969100c0fc637f4b1ebe86] | committer: Paul B Mahol
avfilter/vf_xfade: drop unused frames from inactive inputs
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2aece147d594f78afc969100c0fc637f4b1ebe86
---
libavfilter/vf_xfade.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index 4e07d7b525..cb4fae21d9 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list