avcodec: Make avcodec_decode_subtitle2 accept a const AVPacket*

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
Andreas Rheinhardt
2023-01-27 15:05:58 +01:00
committed by Anton Khirnov
parent 0281e28c37
commit 868a31b42d
6 changed files with 13 additions and 12 deletions

View File

@ -81,8 +81,8 @@ static const FFCodec *AVCodecInitialize(enum AVCodecID codec_id)
return ffcodec(res);
}
static int subtitle_handler(AVCodecContext *avctx, void *frame,
int *got_sub_ptr, AVPacket *avpkt)
static int subtitle_handler(AVCodecContext *avctx, AVFrame *unused,
int *got_sub_ptr, const AVPacket *avpkt)
{
AVSubtitle sub;
int ret = avcodec_decode_subtitle2(avctx, &sub, got_sub_ptr, avpkt);