From: Steve Lhomme Date: Thu, 7 Nov 2024 06:20:57 +0000 (+0100) Subject: avcommon: rename LIBAVUTIL_VERSION_CHECK to LIBAV_UTIL_VERSION_CHECK X-Git-Tag: archive/raspbian/3.0.21-7+rpi1^2~44 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6171876ba49627652e8c8d799f1a47f61695c4de;p=vlc.git avcommon: rename LIBAVUTIL_VERSION_CHECK to LIBAV_UTIL_VERSION_CHECK The LIBAVUTIL_VERSION_CHECK form will be for checks also done in 4.0. No functional changes. Gbp-Pq: Name 0082-avcommon-rename-LIBAVUTIL_VERSION_CHECK-to-LIBAV_UTI.patch --- diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c index c74757c7..44335ec3 100644 --- a/modules/codec/avcodec/audio.c +++ b/modules/codec/avcodec/audio.c @@ -41,7 +41,7 @@ #include #include -#define API_CHANNEL_LAYOUT (LIBAVUTIL_VERSION_CHECK( 52, 2, 6, 0, 100)) +#define API_CHANNEL_LAYOUT (LIBAV_UTIL_VERSION_CHECK( 52, 2, 6, 0, 100)) #if API_CHANNEL_LAYOUT # include diff --git a/modules/codec/avcodec/avcommon_compat.h b/modules/codec/avcodec/avcommon_compat.h index 561ad83f..bb2b9ae0 100644 --- a/modules/codec/avcodec/avcommon_compat.h +++ b/modules/codec/avcodec/avcommon_compat.h @@ -86,15 +86,15 @@ #ifdef HAVE_LIBAVUTIL_AVUTIL_H # include -/* LIBAVUTIL_VERSION_CHECK checks for the right version of libav and FFmpeg +/* LIBAV_UTIL_VERSION_CHECK checks for the right version of libav and FFmpeg * a is the major version * b and c the minor and micro versions of libav * d and e the minor and micro versions of FFmpeg */ -#define LIBAVUTIL_VERSION_CHECK( a, b, c, d, e ) \ +#define LIBAV_UTIL_VERSION_CHECK( a, b, c, d, e ) \ ( (LIBAVUTIL_VERSION_MICRO < 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, b, c ) ) || \ (LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT( a, d, e ) ) ) -#if !LIBAVUTIL_VERSION_CHECK( 52, 11, 0, 32, 100 ) +#if !LIBAV_UTIL_VERSION_CHECK( 52, 11, 0, 32, 100 ) # define AV_PIX_FMT_FLAG_HWACCEL PIX_FMT_HWACCEL #endif diff --git a/modules/codec/avcodec/chroma.c b/modules/codec/avcodec/chroma.c index cb9634db..da20bcb1 100644 --- a/modules/codec/avcodec/chroma.c +++ b/modules/codec/avcodec/chroma.c @@ -180,7 +180,7 @@ static const struct {VLC_CODEC_GBR_PLANAR_16B, AV_PIX_FMT_GBRP16BE, 0, 0, 0 }, /* XYZ */ -#if LIBAVUTIL_VERSION_CHECK(52, 10, 0, 25, 100) +#if LIBAV_UTIL_VERSION_CHECK(52, 10, 0, 25, 100) {VLC_CODEC_XYZ12, AV_PIX_FMT_XYZ12, 0xfff0, 0xfff0, 0xfff0}, #endif { 0, 0, 0, 0, 0 } diff --git a/modules/codec/avcodec/encoder.c b/modules/codec/avcodec/encoder.c index ae746c99..c9a34d8f 100644 --- a/modules/codec/avcodec/encoder.c +++ b/modules/codec/avcodec/encoder.c @@ -47,7 +47,7 @@ #include "avcodec.h" #include "avcommon.h" -#define API_CHANNEL_LAYOUT (LIBAVUTIL_VERSION_CHECK( 52, 2, 6, 0, 100)) +#define API_CHANNEL_LAYOUT (LIBAV_UTIL_VERSION_CHECK( 52, 2, 6, 0, 100)) #if API_CHANNEL_LAYOUT # include diff --git a/modules/codec/avcodec/va.c b/modules/codec/avcodec/va.c index 0feb03b9..06de54dd 100644 --- a/modules/codec/avcodec/va.c +++ b/modules/codec/avcodec/va.c @@ -58,7 +58,7 @@ vlc_fourcc_t vlc_va_GetChroma(enum PixelFormat hwfmt, enum PixelFormat swfmt) } break; -#if LIBAVUTIL_VERSION_CHECK(54, 13, 1, 24, 100) +#if LIBAV_UTIL_VERSION_CHECK(54, 13, 1, 24, 100) case AV_PIX_FMT_D3D11VA_VLD: switch (swfmt) { diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c index 8c892dd3..deefd307 100644 --- a/modules/codec/avcodec/video.c +++ b/modules/codec/avcodec/video.c @@ -257,12 +257,12 @@ static int lavc_GetVideoFormat(decoder_t *dec, video_format_t *restrict fmt, case AVCOL_TRC_BT2020_12: fmt->transfer = TRANSFER_FUNC_BT2020; break; -#if LIBAVUTIL_VERSION_CHECK( 55, 14, 0, 31, 100) +#if LIBAV_UTIL_VERSION_CHECK( 55, 14, 0, 31, 100) case AVCOL_TRC_ARIB_STD_B67: fmt->transfer = TRANSFER_FUNC_ARIB_B67; break; #endif -#if LIBAVUTIL_VERSION_CHECK( 55, 17, 0, 37, 100) +#if LIBAV_UTIL_VERSION_CHECK( 55, 17, 0, 37, 100) case AVCOL_TRC_SMPTE2084: fmt->transfer = TRANSFER_FUNC_SMPTE_ST2084; break; @@ -687,7 +687,7 @@ static int ffmpeg_OpenVa(decoder_t *p_dec, AVCodecContext *p_context, static const enum PixelFormat hwfmts[] = { #ifdef _WIN32 -#if LIBAVUTIL_VERSION_CHECK(54, 13, 1, 24, 100) +#if LIBAV_UTIL_VERSION_CHECK(54, 13, 1, 24, 100) AV_PIX_FMT_D3D11VA_VLD, #endif AV_PIX_FMT_DXVA2_VLD,