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/pixlet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/pixlet.c') diff --git a/libavcodec/pixlet.c b/libavcodec/pixlet.c index 9b61a8b1cd..12857919fe 100644 --- a/libavcodec/pixlet.c +++ b/libavcodec/pixlet.c @@ -601,12 +601,11 @@ static int decode_plane(AVCodecContext *avctx, int plane, return 0; } -static int pixlet_decode_frame(AVCodecContext *avctx, void *data, +static int pixlet_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, AVPacket *avpkt) { PixletContext *ctx = avctx->priv_data; int i, w, h, width, height, ret, version; - AVFrame *p = data; uint32_t pktsize, depth; bytestream2_init(&ctx->gb, avpkt->data, avpkt->size); -- cgit v1.2.3