mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-06 22:25:36 +01:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user