diff options
Diffstat (limited to 'libvo/vo_vdpau.c')
-rw-r--r-- | libvo/vo_vdpau.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libvo/vo_vdpau.c b/libvo/vo_vdpau.c index ba0e0993a2..3f5b7bc660 100644 --- a/libvo/vo_vdpau.c +++ b/libvo/vo_vdpau.c @@ -1365,6 +1365,8 @@ static struct mp_image *read_output_surface(struct vdpctx *vc, VdpStatus vdp_st; struct vdp_functions *vdp = vc->vdp; struct mp_image *image = alloc_mpi(width, height, IMGFMT_BGR32); + image->colorspace = MP_CSP_RGB; + image->levels = vc->colorspace.levels_out; // hardcoded with conv. matrix void *dst_planes[] = { image->planes[0] }; uint32_t dst_pitches[] = { image->stride[0] }; |