mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-17 20:40:07 +01:00
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 <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -130,11 +130,10 @@ static av_cold int libcodec2_close(AVCodecContext *avctx)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int libcodec2_decode(AVCodecContext *avctx, void *data,
|
||||
static int libcodec2_decode(AVCodecContext *avctx, AVFrame *frame,
|
||||
int *got_frame_ptr, AVPacket *pkt)
|
||||
{
|
||||
LibCodec2Context *c2 = avctx->priv_data;
|
||||
AVFrame *frame = data;
|
||||
int ret, nframes, i;
|
||||
uint8_t *input;
|
||||
int16_t *output;
|
||||
|
||||
Reference in New Issue
Block a user