PR #22578 opened by Scott Theisen (ulmus-scott)
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22578
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22578.patch

ISO/IEC 13818-1:2021 Table 2-34 – Stream type assignments
defines 0x11 as ISO/IEC 14496-3 Audio with the LATM transport syntax as defined
in ISO/IEC 14496-3.  This table applies to both Transport Streams and Program
Streams.

---

This had previously been submitted to the mailing list without any replies.


From 0d7dbc86f2e3daae8a4925c5ceb20c9dc2bc02e5 Mon Sep 17 00:00:00 2001
From: ulmus-scott <[email protected]>
Date: Wed, 17 Nov 2021 16:29:43 -0500
Subject: [PATCH] libavformat/mpeg.c: Add support for AAC LATM
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

ISO/IEC 13818-1:2021 Table 2-34 – Stream type assignments
defines 0x11 as ISO/IEC 14496-3 Audio with the LATM transport syntax as defined
in ISO/IEC 14496-3.  This table applies to both Transport Streams and Program
Streams.
---
 libavformat/mpeg.c | 3 +++
 libavformat/mpeg.h | 1 +
 2 files changed, 4 insertions(+)

diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index a7a2ef78e6..a9cf7ea85e 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -541,6 +541,9 @@ redo:
     } else if (es_type == STREAM_TYPE_AUDIO_AAC) {
         codec_id = AV_CODEC_ID_AAC;
         type     = AVMEDIA_TYPE_AUDIO;
+    } else if (es_type == STREAM_TYPE_AUDIO_AAC_LATM) {
+        codec_id = AV_CODEC_ID_AAC_LATM;
+        type     = AVMEDIA_TYPE_AUDIO;
     } else if (es_type == STREAM_TYPE_VIDEO_MPEG4) {
         codec_id = AV_CODEC_ID_MPEG4;
         type     = AVMEDIA_TYPE_VIDEO;
diff --git a/libavformat/mpeg.h b/libavformat/mpeg.h
index 20592eb184..341cf3902c 100644
--- a/libavformat/mpeg.h
+++ b/libavformat/mpeg.h
@@ -54,6 +54,7 @@
 #define STREAM_TYPE_PRIVATE_DATA    0x06
 #define STREAM_TYPE_AUDIO_AAC       0x0f
 #define STREAM_TYPE_VIDEO_MPEG4     0x10
+#define STREAM_TYPE_AUDIO_AAC_LATM  0x11
 #define STREAM_TYPE_VIDEO_H264      0x1b
 #define STREAM_TYPE_VIDEO_HEVC      0x24
 #define STREAM_TYPE_VIDEO_VVC       0x33
-- 
2.52.0

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

Reply via email to