diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-14 11:33:18 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-10-21 11:51:07 +0200 |
commit | 3496cec43304ac040d6d05f9d500a6f93cc049e7 (patch) | |
tree | b71dbc023a212e2b5c640ae2a1d25ade9d690047 /libavcodec/bmp.c | |
parent | ac981d16415e7fd99683e10297781c7d9ec1a8cd (diff) | |
download | ffmpeg-3496cec43304ac040d6d05f9d500a6f93cc049e7.tar.gz |
msrle: Use AVFrame instead of AVPicture
Callers always use a frame and cast it to AVPicture, change
ff_msrle_decode() to accept an AVFrame directly instead.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/bmp.c')
-rw-r--r-- | libavcodec/bmp.c | 2 |
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]; |