libav: error frame_number is deprecated
Since !5186 (merged) libav plugin fails to compile with upstream ffmpeg...
ffmpeg version N-113347-g8e23ebe6f971 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (GCC)
configuration: --prefix=/home/uaeoff/Work/workspace/media/install --disable-static --enable-shared --enable-libdrm --enable-vaapi --enable-libvpl --disable-amf --disable-audiotoolbox --disable-cuda --disable-cuda-sdk --disable-cuvid --disable-d3d11va --disable-dxva2 --disable-libnpp --disable-mmal --disable-nvdec --disable-nvenc --disable-omx --disable-omx-rpi --disable-rkmpp --disable-v4l2-m2m --disable-vdpau --disable-videotoolbox --enable-gpl --enable-libx264 --enable-libx265
libavutil 58. 36.101 / 58. 36.101
libavcodec 60. 37.100 / 60. 37.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
../subprojects/gst-libav/ext/libav/gstavauddec.c: In function ‘gst_ffmpegauddec_frame’:
../subprojects/gst-libav/ext/libav/gstavauddec.c:596:3: error: ‘frame_number’ is deprecated [-Werror=deprecated-declarations]
596 | ffmpegdec->context->frame_number++;
| ^~~~~~~~~
In file included from ../subprojects/gst-libav/ext/libav/gstavauddec.c:29:
/home/uaeoff/Work/workspace/media/install/include/libavcodec/avcodec.h:1106:9: note: declared here
1106 | int frame_number;
| ^~~~~~~~~~~~
cc1: some warnings being treated as errors
It looks like the wrong version macro was used !5186 (diffs)
...it should be LIBAVCODEC_VERSION_INT
I am sending a patch...