changeset 34267:4807501b7405

Set chroma_x_shift for 1-plane YUV formats.
author reimar
date Tue, 22 Nov 2011 19:31:29 +0000
parents a6a1c973de4e
children d4d4fe2184a4
files libmpcodecs/mp_image.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/mp_image.c	Sat Nov 19 14:04:11 2011 +0000
+++ b/libmpcodecs/mp_image.c	Tue Nov 22 19:31:29 2011 +0000
@@ -174,6 +174,7 @@
     case IMGFMT_UYVY:
         mpi->flags|=MP_IMGFLAG_SWAPPED;
     case IMGFMT_YUY2:
+        mpi->chroma_x_shift = 1;
         mpi->bpp=16;
         mpi->num_planes=1;
         return;