summaryrefslogtreecommitdiff
path: root/libavcodec/tscc.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/tscc.c
parentac981d16415e7fd99683e10297781c7d9ec1a8cd (diff)
downloadffmpeg-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/tscc.c')
-rw-r--r--libavcodec/tscc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c
index 98b5f7161b..c96a577a81 100644
--- a/libavcodec/tscc.c
+++ b/libavcodec/tscc.c
@@ -95,7 +95,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
if (ret != Z_DATA_ERROR) {
bytestream2_init(&c->gb, c->decomp_buf,
c->decomp_size - c->zstream.avail_out);
- ff_msrle_decode(avctx, (AVPicture*)frame, c->bpp, &c->gb);
+ ff_msrle_decode(avctx, frame, c->bpp, &c->gb);
}
/* make the palette available on the way out */