diff options
author | wm4 <wm4@nowhere> | 2019-10-25 22:38:00 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-25 22:38:00 +0200 |
commit | d3f8d822791618cd7033b756a3d40ab475373817 (patch) | |
tree | 6142255d4b60dd481c0503dcc9d83c8761e25a64 /video | |
parent | 40b557db6a64f56916efc02f52e67f51f3eb5001 (diff) | |
download | mpv-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
Diffstat (limited to 'video')
-rw-r--r-- | video/mp_image.c | 1 |
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) |