[Mplayer-cvslog] CVS: main/libmpcodecs vd_raw.c,1.6,1.7

Richard Felker CVS rfelker at mplayerhq.hu
Sat May 4 07:46:39 CEST 2002


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv712/libmpcodecs

Modified Files:
	vd_raw.c 
Log Message:
better fix for i420/iyuv as suggested by arpi


Index: vd_raw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_raw.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vd_raw.c	3 May 2002 19:45:43 -0000	1.6
+++ vd_raw.c	4 May 2002 05:46:36 -0000	1.7
@@ -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;




More information about the MPlayer-cvslog mailing list