From d3f8d822791618cd7033b756a3d40ab475373817 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 25 Oct 2019 22:38:00 +0200 Subject: 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 --- video/mp_image.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3