mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-05-17 15:08:09 +08:00
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:

committed by
Anton Khirnov

parent
0281e28c37
commit
868a31b42d
@ -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);
|
||||
|
Reference in New Issue
Block a user