[MPlayer-cvslog] r34355 - trunk/libmpcodecs/mp_image.c

reimar subversion at mplayerhq.hu
Tue Nov 22 20:31:30 CET 2011


Author: reimar
Date: Tue Nov 22 20:31:29 2011
New Revision: 34355

Log:
Set chroma_x_shift for 1-plane YUV formats.

Modified:
   trunk/libmpcodecs/mp_image.c

Modified: trunk/libmpcodecs/mp_image.c
==============================================================================
--- trunk/libmpcodecs/mp_image.c	Sat Nov 19 15:04:11 2011	(r34354)
+++ trunk/libmpcodecs/mp_image.c	Tue Nov 22 20:31:29 2011	(r34355)
@@ -174,6 +174,7 @@ void mp_image_setfmt(mp_image_t* mpi,uns
     case IMGFMT_UYVY:
         mpi->flags|=MP_IMGFLAG_SWAPPED;
     case IMGFMT_YUY2:
+        mpi->chroma_x_shift = 1;
         mpi->bpp=16;
         mpi->num_planes=1;
         return;


More information about the MPlayer-cvslog mailing list