diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c index 40010ac46f..77b8e35eba 100644 --- a/libavcodec/bmp.c +++ b/libavcodec/bmp.c @@ -130,7 +130,7 @@ static int bmp_decode_frame(AVCodecContext *avctx, rgb[1] = bytestream_get_le32(&buf); rgb[2] = bytestream_get_le32(&buf); if (ihsize > 40) - alpha = bytestream_get_le32(&buf); + alpha = bytestream_get_le32(&buf); } ret = ff_set_dimensions(avctx, width, height > 0 ? height : -(unsigned)height);