From 3496cec43304ac040d6d05f9d500a6f93cc049e7 Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Wed, 14 Oct 2015 11:33:18 +0200 Subject: 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 --- libavcodec/msrle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/msrle.c') diff --git a/libavcodec/msrle.c b/libavcodec/msrle.c index a1adeba949..e262f92c41 100644 --- a/libavcodec/msrle.c +++ b/libavcodec/msrle.c @@ -126,7 +126,7 @@ static int msrle_decode_frame(AVCodecContext *avctx, } } else { bytestream2_init(&s->gb, buf, buf_size); - ff_msrle_decode(avctx, (AVPicture*)s->frame, avctx->bits_per_coded_sample, &s->gb); + ff_msrle_decode(avctx, s->frame, avctx->bits_per_coded_sample, &s->gb); } if ((ret = av_frame_ref(data, s->frame)) < 0) -- cgit v1.2.3