aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_xfade.c
diff options
context:
space:
mode:
authorMusee Ullah <lae@lae.is>2020-11-23 13:52:01 -0600
committerPaul B Mahol <onemda@gmail.com>2020-11-24 14:35:41 +0100
commit7bb8b819556a1146eeff1863bbb42b77039c1798 (patch)
treef8631845c495238d49739ec7f3b1100a13b9e2fe /libavfilter/vf_xfade.c
parentc6a7ca271b9cead3595cef09b8e455ff4b3f198a (diff)
downloadffmpeg-7bb8b819556a1146eeff1863bbb42b77039c1798.tar.gz
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@lae.is>
Diffstat (limited to 'libavfilter/vf_xfade.c')
-rw-r--r--libavfilter/vf_xfade.c1
1 files changed, 1 insertions, 0 deletions
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)));