From 9a3ab5c2986461398edc28e4069d9e70cd0b6482 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Wed, 7 Jan 2015 14:46:14 +1100 Subject: [PATCH] mp_image: copy missing attributes This adds a couple of missing fields to mp_image_copy_attributes so things like rotation metadata work. --- video/mp_image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/video/mp_image.c b/video/mp_image.c index 6c969cb3a4..ac90fc1f79 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -358,6 +358,7 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src) dst->pict_type = src->pict_type; dst->fields = src->fields; dst->pts = src->pts; + dst->params.rotate = src->params.rotate; dst->params.stereo_in = src->params.stereo_in; dst->params.stereo_out = src->params.stereo_out; if (dst->w == src->w && dst->h == src->h) { @@ -369,6 +370,7 @@ void mp_image_copy_attributes(struct mp_image *dst, struct mp_image *src) dst->params.colorlevels = src->params.colorlevels; dst->params.primaries = src->params.primaries; dst->params.chroma_location = src->params.chroma_location; + dst->params.outputlevels = src->params.outputlevels; } if ((dst->fmt.flags & MP_IMGFLAG_PAL) && (src->fmt.flags & MP_IMGFLAG_PAL)) { if (dst->planes[1] && src->planes[1])