History

lavf: mxf [de]muxer now uses AV_CODEC_ID_SMPTE_436M_ANC instead of ..._NONE

this makes it easier to match against when using that format from other parts of ffmpeg.

Jacob Lifshay committed 1 year ago

Commit a566fcb1 parent f4ff3794 files · +10 −7Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavformat/mxfdec.c +2 −4
  3. libavformat/mxfenc.c +2 −1
  4. libavformat/version.h +2 −2
doc/APIchanges+4−0
@@ -2,6 +2,10 @@ The last version increases of all libraries were on 2025-03-28 · 1 unmodified line
22
33 API changes, most recent first:
44
5+2025-07-10 - xxxxxxxxxx - lavf 62.2.100
6+ mxf [de]muxer now uses AV_CODEC_ID_SMPTE_436M_ANC for
7+ the vbi_vanc_smpte_436M streams instead of AV_CODEC_ID_NONE.
8+
59 2025-07-10 - xxxxxxxxxx - lavc 62.10.100 - codec_id.h
610 Add AV_CODEC_ID_SMPTE_436M_ANC.
711
libavformat/mxfdec.c+2−4
@@ -1685,7 +1685,7 @@ static const MXFCodecUL mxf_sound_essence_container_uls[] = { · 1684 unmodified lines
16851685
16861686 static const MXFCodecUL mxf_data_essence_container_uls[] = {
16871687 { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x0d,0x00,0x00 }, 16, AV_CODEC_ID_NONE, "vbi_smpte_436M", 11 },
1688− { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x0e,0x00,0x00 }, 16, AV_CODEC_ID_NONE, "vbi_vanc_smpte_436M", 11 },
1688+ { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x0e,0x00,0x00 }, 16, AV_CODEC_ID_SMPTE_436M_ANC, "vbi_vanc_smpte_436M", 11 },
16891689 { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x13,0x01,0x01 }, 16, AV_CODEC_ID_TTML },
16901690 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
16911691 };
@@ -3115,9 +3115,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 1423 unmodified lines
31153115 st->codecpar->codec_type = type;
31163116 if (container_ul->desc)
31173117 av_dict_set(&st->metadata, "data_type", container_ul->desc, 0);
3118− if (mxf->eia608_extract &&
3119− container_ul->desc &&
3120− !strcmp(container_ul->desc, "vbi_vanc_smpte_436M")) {
3118+ if (mxf->eia608_extract && st->codecpar->codec_id == AV_CODEC_ID_SMPTE_436M_ANC) {
31213119 st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
31223120 st->codecpar->codec_id = AV_CODEC_ID_EIA_608;
31233121 }
libavformat/mxfenc.c+2−1
@@ -3074,7 +3074,8 @@ static int mxf_init(AVFormatContext *s) · 3073 unmodified lines
30743074 return ret;
30753075 } else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {
30763076 AVDictionaryEntry *e = av_dict_get(st->metadata, "data_type", NULL, 0);
3077− if (e && !strcmp(e->value, "vbi_vanc_smpte_436M")) {
3077+ if ((e && !strcmp(e->value, "vbi_vanc_smpte_436M"))
3078+ || st->codecpar->codec_id == AV_CODEC_ID_SMPTE_436M_ANC) {
30783079 sc->index = INDEX_S436M;
30793080 } else {
30803081 av_log(s, AV_LOG_ERROR, "track %d: unsupported data type\n", i);
libavformat/version.h+2−2
@@ -31,8 +31,8 @@ · 30 unmodified lines
3131
3232 #include "version_major.h"
3333
34−#define LIBAVFORMAT_VERSION_MINOR 1
35−#define LIBAVFORMAT_VERSION_MICRO 103
34+#define LIBAVFORMAT_VERSION_MINOR 2
35+#define LIBAVFORMAT_VERSION_MICRO 100
3636
3737 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
3838 LIBAVFORMAT_VERSION_MINOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t