[FFmpeg-devel] [PATCH] libavformat/mpeg.c: add support for AAC LATM
Scott Theisen
scott.the.elm at gmail.com
Fri Feb 21 07:03:37 EET 2025
On 11/14/24 00:15, Scott Theisen wrote:
> 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 2c766a4ee9..57562c1ee6 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
Ping? Rebased onto master cleanly.
More information about the ffmpeg-devel
mailing list