summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-29 15:19:30 +0200
committerwm4 <wm4@nowhere>2014-05-02 01:08:05 +0200
commit586ea206daf6cb156d8fb59453416bf854154b34 (patch)
treebb23913f6ed1c3c20bc3f55c5e72056bbd8f443a /video
parent6775487a46e42663cf96f4f34091d700f0c5889c (diff)
downloadmpv-586ea206daf6cb156d8fb59453416bf854154b34.tar.bz2
mpv-586ea206daf6cb156d8fb59453416bf854154b34.tar.xz
vo_vdpau: keep colorspace flags
Since vdpau_mixer.c initializes the YUV conversion using the mp_image flags, these images should have all flags set properly.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_vdpau.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index aae98f618d..476353e25e 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -899,6 +899,7 @@ static struct mp_image *get_rgb_surface(struct vo *vo)
if (!*used) {
*used = true;
struct mp_image mpi = {0};
+ mp_image_setfmt(&mpi, IMGFMT_VDPAU); // not really, but keep csp flags
mpi.planes[0] = (void *)(uintptr_t)vc->rgb_surfaces[n];
return mp_image_new_custom_ref(&mpi, used, free_rgb_surface);
}
@@ -958,7 +959,7 @@ static struct mp_image *filter_image(struct vo *vo, struct mp_image *mpi)
}
}
- reserved_mpi->pts = mpi->pts;
+ mp_image_copy_attributes(reserved_mpi, mpi);
end:
talloc_free(mpi);