From 7e2b159f022a9efb9b81d98cda0b64c69aa5a6b4 Mon Sep 17 00:00:00 2001 From: mplayer-svn Date: Tue, 22 Nov 2011 19:31:29 +0000 Subject: [PATCH] mp_image: set chroma_x_shift for 1-plane YUV formats git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@34355 b3059339-0415-0410-9bf9-f77b7e298cf2 Author: reimar --- libmpcodecs/mp_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libmpcodecs/mp_image.c b/libmpcodecs/mp_image.c index 4e20dee119..b1cd9c81f8 100644 --- a/libmpcodecs/mp_image.c +++ b/libmpcodecs/mp_image.c @@ -172,6 +172,7 @@ void mp_image_setfmt(mp_image_t* mpi,unsigned int out_fmt){ case IMGFMT_UYVY: mpi->flags|=MP_IMGFLAG_SWAPPED; case IMGFMT_YUY2: + mpi->chroma_x_shift = 1; mpi->bpp=16; mpi->num_planes=1; return;