[FFmpeg-devel] [PATCH 1/2] libavformat/mpegts.h: add DVB descriptor_tag values already in use

Scott Theisen scott.the.elm at gmail.com
Fri Nov 15 07:48:22 EET 2024


---
 libavformat/mpegts.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
index 14ae312c50..729c8b07b9 100644
--- a/libavformat/mpegts.h
+++ b/libavformat/mpegts.h
@@ -165,6 +165,17 @@
 #define METADATA_DESCRIPTOR          0x26
 #define METADATA_STD_DESCRIPTOR      0x27
 
+/* DVB descriptor tag values [0x40, 0x7F] from
+   ETSI EN 300 468 Table 12: Possible locations of descriptors */
+#define SERVICE_DESCRIPTOR           0x48
+#define STREAM_IDENTIFIER_DESCRIPTOR 0x52
+#define TELETEXT_DESCRIPTOR          0x56
+#define SUBTITLING_DESCRIPTOR        0x59
+#define AC3_DESCRIPTOR               0x6A // AC-3_descriptor
+#define ENHANCED_AC3_DESCRIPTOR      0x7A // enhanced_AC-3_descriptor
+#define DTS_DESCRIPTOR               0x7B
+#define EXTENSION_DESCRIPTOR         0x7F
+
 typedef struct MpegTSContext MpegTSContext;
 
 MpegTSContext *avpriv_mpegts_parse_open(AVFormatContext *s);
-- 
2.43.0



More information about the ffmpeg-devel mailing list