changeset 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 3a17e1050818
children 306ea9a02ebe
files libmpdemux/demux_mov.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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