changeset 5966:7779ad600a71

better fix for i420/iyuv as suggested by arpi
author rfelker
date Sat, 04 May 2002 05:46:36 +0000
parents 27519699d416
children ad187ccb8c01
files libmpcodecs/vd_raw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_raw.c	Sat May 04 05:32:26 2002 +0000
+++ b/libmpcodecs/vd_raw.c	Sat May 04 05:46:36 2002 +0000
@@ -66,7 +66,7 @@
         if(mpi->bpp == 12 && mpi->flags&MP_IMGFLAG_YUV) {
             // Support for some common Planar YUV formats
             int cb=2, cr=1;
-            if (sh->format == IMGFMT_IYUV || sh->format == IMGFMT_I420) {
+            if(mpi->flags&MP_IMGFLAG_SWAPPED) {
                 cb=1; cr=2;
             }
             mpi->planes[cb]=data+mpi->width*mpi->height;