[Mplayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.91,1.92

Roberto Togni CVS rtognimp at mplayerhq.hu
Sun Jan 26 22:27:02 CET 2003


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

Modified Files:
	demux_mov.c 
Log Message:
32 bpp is a valid color depth. Fixes 0-bit rle reports

Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.91
retrieving revision 1.92
diff -u -r1.91 -r1.92
--- demux_mov.c	13 Jan 2003 02:42:06 -0000	1.91
+++ demux_mov.c	26 Jan 2003 21:26:45 -0000	1.92
@@ -1107,7 +1107,7 @@
 		if(depth>32+8) printf("*** depth = 0x%X\n",depth);
 
 		// palettized?
-		depth&=31; // flag 32 means grayscale
+		if (depth > 32) depth&=31; // depth > 32 means grayscale
 		if ((depth == 2) || (depth == 4) || (depth == 8))
 		  palette_count = (1 << depth);
 		else



More information about the MPlayer-cvslog mailing list