mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
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
This commit is contained in:
parent
40b557db6a
commit
d3f8d82279
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user