From 447ee0b56637723e7c046ef6c5e3e3abb308f71f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 15 May 2023 08:49:06 +0200 Subject: [PATCH] avvidec: Fix usage of deprecated field Since ffmpeg 6.0 frame_num is used instead of frame_number Part-of: --- subprojects/gst-libav/ext/libav/gstavviddec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-libav/ext/libav/gstavviddec.c b/subprojects/gst-libav/ext/libav/gstavviddec.c index 72985da314..614c8edb0f 100644 --- a/subprojects/gst-libav/ext/libav/gstavviddec.c +++ b/subprojects/gst-libav/ext/libav/gstavviddec.c @@ -2017,7 +2017,11 @@ gst_ffmpegviddec_frame (GstFFMpegVidDec * ffmpegdec, GstVideoCodecFrame * frame, goto no_codec; *ret = GST_FLOW_OK; +#if LIBAVCODEC_VERSION_MAJOR >= 60 + ffmpegdec->context->frame_num++; +#else ffmpegdec->context->frame_number++; +#endif got_frame = gst_ffmpegviddec_video_frame (ffmpegdec, frame, ret);