This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 1e9dd2b7e964f785e4f815bd45ff33ab70288c54
Author:     Alexander Slobodeniuk <[email protected]>
AuthorDate: Thu Apr 16 19:30:20 2026 +0200
Commit:     Marton Balint <[email protected]>
CommitDate: Sun May 3 20:10:26 2026 +0000

    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
---
 libavformat/mpegts.c | 4 ++++
 libavformat/mpegts.h | 1 +
 2 files changed, 5 insertions(+)

diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 9c04d953c4..d62470592c 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -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:
diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index 18f326b8bf..13f958429b 100644
--- a/libavformat/mpegts.h
+++ b/libavformat/mpegts.h
@@ -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
 */

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to