[FFmpeg-cvslog] avfilter/vf_xfade: ensure metadata is copied to transition frames

Musee Ullah git at videolan.org
Tue Nov 24 15:36:30 EET 2020

ffmpeg | branch: master | Musee Ullah <lae at lae.is> | Mon Nov 23 13:52:01 2020 -0600| [7bb8b819556a1146eeff1863bbb42b77039c1798] | committer: Paul B Mahol

avfilter/vf_xfade: ensure metadata is copied to transition frames

I was having an issue where, using a filter chain of xfade -> ass, the
colors on the subtitles were incorrect only on the frames where xfade
was being used. This resolves that issue for me.

Signed-off-by: Musee Ullah <lae at lae.is>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7bb8b819556a1146eeff1863bbb42b77039c1798

 libavfilter/vf_xfade.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_xfade.c b/libavfilter/vf_xfade.c
index 6b94cc7036..4e07d7b525 100644
--- a/libavfilter/vf_xfade.c
+++ b/libavfilter/vf_xfade.c
@@ -1830,6 +1830,7 @@ static int xfade_frame(AVFilterContext *ctx, AVFrame *a, AVFrame *b)
     out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
     if (!out)
         return AVERROR(ENOMEM);
+    av_frame_copy_props(out, a);
     td.xf[0] = a, td.xf[1] = b, td.out = out, td.progress = progress;
     ctx->internal->execute(ctx, xfade_slice, &td, NULL, FFMIN(outlink->h, ff_filter_get_nb_threads(ctx)));

More information about the ffmpeg-cvslog mailing list