[Mplayer-cvslog] CVS: main/libmpcodecs vd_vfw.c,1.19,1.20

Arpi of Ize arpi at mplayerhq.hu
Thu Sep 5 01:17:56 CEST 2002


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

Modified Files:
	vd_vfw.c 
Log Message:
1000l - planar YUV support fixed (indeo 3,4,5, i263 etc)
we shouldn't do planes[1]==NULL for formats like planar yuv


Index: vd_vfw.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_vfw.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- vd_vfw.c	4 Sep 2002 22:34:17 -0000	1.19
+++ vd_vfw.c	4 Sep 2002 23:17:53 -0000	1.20
@@ -317,6 +317,7 @@
     }
     
     // export palette:
+    if(mpi->imgfmt==IMGFMT_RGB8 || mpi->imgfmt==IMGFMT_BGR8){
 	if (priv->palette)
 	{
 	    mpi->planes[1] = priv->palette;
@@ -325,7 +326,8 @@
 	}
 	else
 	    mpi->planes[1]=NULL;
-    
+    }
+        
     return mpi;
 }
 #endif




More information about the MPlayer-cvslog mailing list