comparison 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
comparison
equal deleted inserted replaced
9112:3a17e1050818 9113:ee0fdf5505c4
1105 } 1105 }
1106 1106
1107 if(depth>32+8) printf("*** depth = 0x%X\n",depth); 1107 if(depth>32+8) printf("*** depth = 0x%X\n",depth);
1108 1108
1109 // palettized? 1109 // palettized?
1110 depth&=31; // flag 32 means grayscale 1110 if (depth > 32) depth&=31; // depth > 32 means grayscale
1111 if ((depth == 2) || (depth == 4) || (depth == 8)) 1111 if ((depth == 2) || (depth == 4) || (depth == 8))
1112 palette_count = (1 << depth); 1112 palette_count = (1 << depth);
1113 else 1113 else
1114 palette_count = 0; 1114 palette_count = 0;
1115 1115