From ce7dbd0481f990e249c2a05f179228489d3062cf Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 30 Mar 2022 21:33:24 +0200 Subject: avcodec/codec_internal: Make FFCodec.decode use AVFrame* This increases type-safety by avoiding conversions from/through void*. It also avoids the boilerplate "AVFrame *frame = data;" line for non-subtitle decoders. Signed-off-by: Andreas Rheinhardt --- libavcodec/mvha.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'libavcodec/mvha.c') diff --git a/libavcodec/mvha.c b/libavcodec/mvha.c index c5b5ce0615..7c312d8562 100644 --- a/libavcodec/mvha.c +++ b/libavcodec/mvha.c @@ -148,12 +148,10 @@ static int build_vlc(AVCodecContext *avctx, VLC *vlc) return ff_init_vlc_sparse(vlc, 12, pos, lens, 2, 2, bits, 4, 4, xlat, 1, 1, 0); } -static int decode_frame(AVCodecContext *avctx, - void *data, int *got_frame, - AVPacket *avpkt) +static int decode_frame(AVCodecContext *avctx, AVFrame *frame, + int *got_frame, AVPacket *avpkt) { MVHAContext *s = avctx->priv_data; - AVFrame *frame = data; uint32_t type, size; int ret; -- cgit v1.2.3