Commit 810294ce authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

Use os/2 palette even if it contains less than 256 entries.

Fixes 11Bios13.bmp.
parent 8f6a04a2
......@@ -248,6 +248,8 @@ static int bmp_decode_frame(AVCodecContext *avctx,
} else if (t) {
colors = t;
}
} else {
colors = FFMIN(256, (hsize-ihsize-14) / 3);
}
buf = buf0 + 14 + ihsize; //palette location
// OS/2 bitmap, 3 bytes per palette entry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment