mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
Use os/2 palette even if it contains less than 256 entries.
Fixes 11Bios13.bmp.
This commit is contained in:
parent
8f6a04a279
commit
810294ce3d
@ -248,6 +248,8 @@ static int bmp_decode_frame(AVCodecContext *avctx,
|
|||||||
} else if (t) {
|
} else if (t) {
|
||||||
colors = t;
|
colors = t;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
colors = FFMIN(256, (hsize-ihsize-14) / 3);
|
||||||
}
|
}
|
||||||
buf = buf0 + 14 + ihsize; //palette location
|
buf = buf0 + 14 + ihsize; //palette location
|
||||||
// OS/2 bitmap, 3 bytes per palette entry
|
// OS/2 bitmap, 3 bytes per palette entry
|
||||||
|
Loading…
x
Reference in New Issue
Block a user