Bruno Jesus 00cpxxx@gmail.com writes:
@@ -1647,27 +1655,33 @@ static LRESULT DecompressBegin(CodecInfo *pi, LPCBITMAPINFOHEADER lpbiIn,
if (lpbiIn->biCompression != BI_RGB) {
- int colors;
- if (lpbiIn->biClrUsed == 0)
colors = 1 << lpbiIn->biBitCount;
- else
colors = lpbiIn->biClrUsed;
I don't think you want to do that for biBitCount > 8.