summaryrefslogtreecommitdiff
path: root/libavcodec/bmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/bmp.c')
-rw-r--r--libavcodec/bmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bmp.c b/libavcodec/bmp.c
index f545e784b8..648fa68e1f 100644
--- a/libavcodec/bmp.c
+++ b/libavcodec/bmp.c
@@ -264,7 +264,7 @@ static int bmp_decode_frame(AVCodecContext *avctx,
p->linesize[0] = -p->linesize[0];
}
bytestream2_init(&gb, buf, dsize);
- ff_msrle_decode(avctx, (AVPicture*)p, depth, &gb);
+ ff_msrle_decode(avctx, p, depth, &gb);
if (height < 0) {
p->data[0] += p->linesize[0] * (avctx->height - 1);
p->linesize[0] = -p->linesize[0];