mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
avvidec: Fix usage of deprecated field
Since ffmpeg 6.0 frame_num is used instead of frame_number Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4635>
This commit is contained in:
parent
f3c126d07c
commit
447ee0b566
1 changed files with 4 additions and 0 deletions
|
@ -2017,7 +2017,11 @@ gst_ffmpegviddec_frame (GstFFMpegVidDec * ffmpegdec, GstVideoCodecFrame * frame,
|
||||||
goto no_codec;
|
goto no_codec;
|
||||||
|
|
||||||
*ret = GST_FLOW_OK;
|
*ret = GST_FLOW_OK;
|
||||||
|
#if LIBAVCODEC_VERSION_MAJOR >= 60
|
||||||
|
ffmpegdec->context->frame_num++;
|
||||||
|
#else
|
||||||
ffmpegdec->context->frame_number++;
|
ffmpegdec->context->frame_number++;
|
||||||
|
#endif
|
||||||
|
|
||||||
got_frame = gst_ffmpegviddec_video_frame (ffmpegdec, frame, ret);
|
got_frame = gst_ffmpegviddec_video_frame (ffmpegdec, frame, ret);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue