Assume that old bmps do not contain transparency information.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Fri, 4 Jul 2014 19:14:53 +0000 (21:14 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sat, 5 Jul 2014 00:11:17 +0000 (02:11 +0200)
Fixes MK50TEMP.BMP that has its RGB channel bit masks on the actual image.

libavcodec/bmp.c

index 7443fa9..ec4c467 100644 (file)
@@ -128,6 +128,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
         rgb[0] = bytestream_get_le32(&buf);
         rgb[1] = bytestream_get_le32(&buf);
         rgb[2] = bytestream_get_le32(&buf);
+        if (ihsize > 40)
         alpha = bytestream_get_le32(&buf);
     }