Commit 17896bb7 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Accept the 108 byte header of BMP v4. (#168799)

2005-05-27  Matthias Clasen  <mclasen@redhat.com>

	* io-bmp.c: Accept the 108 byte header of BMP v4.  (#168799)
parent 825224b8
2005-05-27 Matthias Clasen <mclasen@redhat.com>
* io-bmp.c: Accept the 108 byte header of BMP v4. (#168799)
2005-05-25 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf.symbols:
......
......@@ -265,7 +265,12 @@ static gboolean DecodeHeader(unsigned char *BFH, unsigned char *BIH,
#endif
State->Header.size = lsb_32 (&BIH[0]);
if (State->Header.size == 40) {
if (State->Header.size == 108) {
State->Header.width = lsb_32 (&BIH[4]);
State->Header.height = lsb_32 (&BIH[8]);
State->Header.depth = lsb_16 (&BIH[14]);
State->Compressed = lsb_32 (&BIH[16]);
} else if (State->Header.size == 40) {
State->Header.width = lsb_32 (&BIH[4]);
State->Header.height = lsb_32 (&BIH[8]);
State->Header.depth = lsb_16 (&BIH[14]);
......
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