summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-10-25 22:38:00 +0200
committerwm4 <wm4@nowhere>2019-10-25 22:38:00 +0200
commitd3f8d822791618cd7033b756a3d40ab475373817 (patch)
tree6142255d4b60dd481c0503dcc9d83c8761e25a64
parent40b557db6a64f56916efc02f52e67f51f3eb5001 (diff)
downloadmpv-d3f8d822791618cd7033b756a3d40ab475373817.tar.bz2
mpv-d3f8d822791618cd7033b756a3d40ab475373817.tar.xz
mp_image: copy closed captions when copying attributes
With hwdec copy modes, mp_image_copy_attributes() is used to transfer metadata other than the image data when copying the image from the hardware surface. It didn't copy the closed caption data. Fix this. This makes closed captions in copy mode work. Fixes: #6376
-rw-r--r--video/mp_image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 5d0caca977..ef2fa488ad 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -527,6 +527,7 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src)
}
}
assign_bufref(&dst->icc_profile, src->icc_profile);
+ assign_bufref(&dst->a53_cc, src->a53_cc);
}
// Crop the given image to (x0, y0)-(x1, y1) (bottom/right border exclusive)