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
2 2
3API changes, most recent first:3API changes, most recent first:
4 4
52025-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
52025-07-10 - xxxxxxxxxx - lavc 62.10.100 - codec_id.h92025-07-10 - xxxxxxxxxx - lavc 62.10.100 - codec_id.h
6 Add AV_CODEC_ID_SMPTE_436M_ANC.10 Add AV_CODEC_ID_SMPTE_436M_ANC.
7 11
libavformat/mxfdec.c+2−4
@@ -1685,7 +1685,7 @@ static const MXFCodecUL mxf_sound_essence_container_uls[] = { · 1684 unmodified lines
1685 1685
1686static const MXFCodecUL mxf_data_essence_container_uls[] = {1686static const MXFCodecUL mxf_data_essence_container_uls[] = {
1687 { { 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 },1687 { { 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 },
1689 { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x13,0x01,0x01 }, 16, AV_CODEC_ID_TTML },1689 { { 0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x09,0x0d,0x01,0x03,0x01,0x02,0x13,0x01,0x01 }, 16, AV_CODEC_ID_TTML },
1690 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },1690 { { 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 }, 0, AV_CODEC_ID_NONE },
1691};1691};
@@ -3115,9 +3115,7 @@ static int mxf_parse_structural_metadata(MXFContext *mxf) · 1423 unmodified lines
3115 st->codecpar->codec_type = type;3115 st->codecpar->codec_type = type;
3116 if (container_ul->desc)3116 if (container_ul->desc)
3117 av_dict_set(&st->metadata, "data_type", container_ul->desc, 0);3117 av_dict_set(&st->metadata, "data_type", container_ul->desc, 0);
3118 if (mxf->eia608_extract &&3118 if (mxf->eia608_extract && st->codecpar->codec_id == AV_CODEC_ID_SMPTE_436M_ANC) {
3119 container_ul->desc &&
3120 !strcmp(container_ul->desc, "vbi_vanc_smpte_436M")) {
3121 st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;3119 st->codecpar->codec_type = AVMEDIA_TYPE_SUBTITLE;
3122 st->codecpar->codec_id = AV_CODEC_ID_EIA_608;3120 st->codecpar->codec_id = AV_CODEC_ID_EIA_608;
3123 }3121 }
libavformat/mxfenc.c+2−1
@@ -3074,7 +3074,8 @@ static int mxf_init(AVFormatContext *s) · 3073 unmodified lines
3074 return ret;3074 return ret;
3075 } else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {3075 } else if (st->codecpar->codec_type == AVMEDIA_TYPE_DATA) {
3076 AVDictionaryEntry *e = av_dict_get(st->metadata, "data_type", NULL, 0);3076 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) {
3078 sc->index = INDEX_S436M;3079 sc->index = INDEX_S436M;
3079 } else {3080 } else {
3080 av_log(s, AV_LOG_ERROR, "track %d: unsupported data type\n", i);3081 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
31 31
32#include "version_major.h"32#include "version_major.h"
33 33
34#define LIBAVFORMAT_VERSION_MINOR 134#define LIBAVFORMAT_VERSION_MINOR 2
35#define LIBAVFORMAT_VERSION_MICRO 10335#define LIBAVFORMAT_VERSION_MICRO 100
36 36
37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \37#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
38 LIBAVFORMAT_VERSION_MINOR, \38 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