[FFmpeg-devel] [PATCH] mpegtsenc: support CODEC_ID_AAC_LATM
Måns Rullgård
mans
Fri Jan 28 23:35:41 CET 2011
Peter Ross <pross at xvid.org> writes:
> $subject. Have used this for loopback testing with mpegts.c.
>
> -- Peter
> (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
>
> From 0f7f9db4b7da1793996af6dda84298507703759a Mon Sep 17 00:00:00 2001
> From: Peter Ross <pross at xvid.org>
> Date: Sun, 9 Jan 2011 09:45:50 +1100
> Subject: [PATCH] mpegtsenc: support CODEC_ID_AAC_LATM
>
> ---
> libavformat/mpegts.h | 1 +
> libavformat/mpegtsenc.c | 3 +++
> 2 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/libavformat/mpegts.h b/libavformat/mpegts.h
> index 25f2107..e603297 100644
> --- a/libavformat/mpegts.h
> +++ b/libavformat/mpegts.h
> @@ -48,6 +48,7 @@
> #define STREAM_TYPE_PRIVATE_SECTION 0x05
> #define STREAM_TYPE_PRIVATE_DATA 0x06
> #define STREAM_TYPE_AUDIO_AAC 0x0f
> +#define STREAM_TYPE_AUDIO_AAC_LATM 0x11
> #define STREAM_TYPE_VIDEO_MPEG4 0x10
> #define STREAM_TYPE_VIDEO_H264 0x1b
> #define STREAM_TYPE_VIDEO_VC1 0xea
> diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
> index 3c56830..5735684 100644
> --- a/libavformat/mpegtsenc.c
> +++ b/libavformat/mpegtsenc.c
> @@ -241,6 +241,9 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
> case CODEC_ID_AAC:
> stream_type = STREAM_TYPE_AUDIO_AAC;
> break;
> + case CODEC_ID_AAC_LATM:
> + stream_type = STREAM_TYPE_AUDIO_AAC_LATM;
> + break;
> case CODEC_ID_AC3:
> stream_type = STREAM_TYPE_AUDIO_AC3;
> break;
> --
> 1.7.1
OK, pushing.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list