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:
wm4 2019-10-25 22:38:00 +02:00
parent 40b557db6a
commit d3f8d82279
1 changed files with 1 additions and 0 deletions

View File

@ -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)