gst-libav: fix build with ffmpeg-5.0.0
authorXi Ruoyao <xry111@mengyan1223.wang>
Sun, 16 Jan 2022 17:33:47 +0000 (01:33 +0800)
committerXi Ruoyao <xry111@mengyan1223.wang>
Mon, 17 Jan 2022 10:11:32 +0000 (18:11 +0800)
commit6ea56e7fd39c48e718a10b6e69ec214532789a59
treeeb07c6d1929bb62d7fe5e0eeed70542c0f8fcd94
parentf97ab9edf779989158f6bab43293ace881558839
gst-libav: fix build with ffmpeg-5.0.0

Latest ffmpeg has removed avcodec_get_context_defaults(), and its
documentation says a new AVCodecContext should be allocated for this
purpose.  The pointer returned by avcodec_find_decoder() is now
const-qualified so we also need to adjust for it.  And, AVCOL_RANGE_MPEG
is now rejected with strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1531>
subprojects/gst-libav/ext/libav/gstavauddec.c
subprojects/gst-libav/ext/libav/gstavaudenc.c
subprojects/gst-libav/ext/libav/gstavcodecmap.c
subprojects/gst-libav/ext/libav/gstavutils.c
subprojects/gst-libav/ext/libav/gstavviddec.c
subprojects/gst-libav/ext/libav/gstavvidenc.c