diff libmpdemux/demux_mov.c @ 9113:ee0fdf5505c4

32 bpp is a valid color depth. Fixes 0-bit rle reports
author rtognimp
date Sun, 26 Jan 2003 21:26:45 +0000
parents afca652cb0e5
children 61ec44e2f406
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Sun Jan 26 20:50:27 2003 +0000
+++ b/libmpdemux/demux_mov.c	Sun Jan 26 21:26:45 2003 +0000
@@ -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