avformat/mpegts: handle AC-4 descriptor in DVB extension

as defined in ETSI EN 300 468 (Table 109).

This allows ffprobe to recognize that .ts
file has an ac4 stream.

Checked on the files downloaded from
https://ott.dolby.com/OnDelKits/AC-4/Download_v15.html
This commit is contained in:
Alexander Slobodeniuk
2026-04-16 19:30:20 +02:00
committed by Marton Balint
parent dd020e1025
commit 1e9dd2b7e9
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -2320,6 +2320,10 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
}
break;
}
if (ext_desc_tag == AC4_DESCRIPTOR) {
st->codecpar->codec_id = AV_CODEC_ID_AC4;
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
}
break;
case AC3_DESCRIPTOR:
case ENHANCED_AC3_DESCRIPTOR:
+1
View File
@@ -228,6 +228,7 @@ https://developer.apple.com/library/archive/documentation/AudioVideo/Conceptual/
/* DVB descriptor_tag_extension values from
ETSI EN 300 468 Table 109: Possible locations of extended descriptors */
#define SUPPLEMENTARY_AUDIO_DESCRIPTOR 0x06
#define AC4_DESCRIPTOR 0x15
/** see "Dolby Vision Streams Within the MPEG-2 Transport Stream Format"
https://professional.dolby.com/siteassets/content-creation/dolby-vision-for-content-creators/dolby-vision-bitstreams-in-mpeg-2-transport-stream-multiplex-v1.2.pdf */