From f4ff379baea8a957784850dfe70f0978d8fae5b6 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 10 Jul 2025 19:31:38 -0700 Subject: [PATCH] lavc: add AV_CODEC_ID_SMPTE_436M_ANC This creates a new codec id for mxf vbi_vanc_smpte_436M streams. This makes it easier to use from other [de]muxers and bitstream filters. It's just the data in Table 7 (starts on page 13) of: https://pub.smpte.org/latest/st436/s436m-2006.pdf Signed-off-by: Jacob Lifshay --- doc/APIchanges | 3 +++ libavcodec/codec_desc.c | 6 ++++++ libavcodec/codec_id.h | 1 + libavcodec/version.h | 2 +- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/APIchanges b/doc/APIchanges index 4f7723506e..c43d2d7711 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,9 @@ The last version increases of all libraries were on 2025-03-28 API changes, most recent first: +2025-07-10 - xxxxxxxxxx - lavc 62.10.100 - codec_id.h + Add AV_CODEC_ID_SMPTE_436M_ANC. + 2025-08-08 - xxxxxxxxxx - lavc 62.9.100 - codec_id.h Add AV_CODEC_ID_PRORES_RAW. diff --git a/libavcodec/codec_desc.c b/libavcodec/codec_desc.c index 3cd405c908..a065556e51 100644 --- a/libavcodec/codec_desc.c +++ b/libavcodec/codec_desc.c @@ -3770,6 +3770,12 @@ static const AVCodecDescriptor codec_descriptors[] = { .name = "lcevc", .long_name = NULL_IF_CONFIG_SMALL("LCEVC (Low Complexity Enhancement Video Coding) / MPEG-5 LCEVC / MPEG-5 part 2"), }, + { + .id = AV_CODEC_ID_SMPTE_436M_ANC, + .type = AVMEDIA_TYPE_DATA, + .name = "smpte_436m_anc", + .long_name = NULL_IF_CONFIG_SMALL("MXF SMPTE-436M ANC"), + }, { .id = AV_CODEC_ID_MPEG2TS, .type = AVMEDIA_TYPE_DATA, diff --git a/libavcodec/codec_id.h b/libavcodec/codec_id.h index adf263f6b0..c4842e61ff 100644 --- a/libavcodec/codec_id.h +++ b/libavcodec/codec_id.h @@ -603,6 +603,7 @@ enum AVCodecID { AV_CODEC_ID_BIN_DATA, AV_CODEC_ID_SMPTE_2038, AV_CODEC_ID_LCEVC, + AV_CODEC_ID_SMPTE_436M_ANC, AV_CODEC_ID_PROBE = 0x19000, ///< codec_id is not known (like AV_CODEC_ID_NONE) but lavf should attempt to identify it diff --git a/libavcodec/version.h b/libavcodec/version.h index 230d5fa13e..80e2ae630d 100644 --- a/libavcodec/version.h +++ b/libavcodec/version.h @@ -29,7 +29,7 @@ #include "version_major.h" -#define LIBAVCODEC_VERSION_MINOR 9 +#define LIBAVCODEC_VERSION_MINOR 10 #define LIBAVCODEC_VERSION_MICRO 100 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \