summaryrefslogtreecommitdiffstats
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2014-07-04 21:14:53 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2014-07-05 02:11:17 +0200
commit8f6a04a279bb72b9aa73d30b9e43a54fd9b1aedb (patch)
tree07c33523de35229cfaf5d3acde4f7e1489d54d6a /libavcodec/bmp.c
parentd919fdd4f7e8bf5354e99780181cdaedcf879fa5 (diff)
downloadffmpeg-streaming-8f6a04a279bb72b9aa73d30b9e43a54fd9b1aedb.zip
ffmpeg-streaming-8f6a04a279bb72b9aa73d30b9e43a54fd9b1aedb.tar.gz
Assume that old bmps do not contain transparency information.
Fixes MK50TEMP.BMP that has its RGB channel bit masks on the actual image.
Diffstat (limited to 'libavcodec/bmp.c')
-rw-r--r--libavcodec/bmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index 7443fa9..ec4c467 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -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);
}
OpenPOWER on IntegriCloud