summaryrefslogtreecommitdiff
path: root/libavcodec/msrle.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-10-14 11:33:18 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-10-21 11:51:07 +0200
commit3496cec43304ac040d6d05f9d500a6f93cc049e7 (patch)
treeb71dbc023a212e2b5c640ae2a1d25ade9d690047 /libavcodec/msrle.c
parentac981d16415e7fd99683e10297781c7d9ec1a8cd (diff)
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/msrle.c')
-rw-r--r--libavcodec/msrle.c2
1 files changed, 1 insertions, 1 deletions
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)