mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00: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:
parent
fb59a42ef9
commit
ce7dbd0481
310 changed files with 588 additions and 903 deletions
|
|
@ -1253,10 +1253,10 @@ end:
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt)
|
||||
static int decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
||||
int *got_frame, AVPacket *pkt)
|
||||
{
|
||||
BinkContext * const c = avctx->priv_data;
|
||||
AVFrame *frame = data;
|
||||
GetBitContext gb;
|
||||
int plane, plane_idx, ret;
|
||||
int bits_count = pkt->size << 3;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue