[PATCH] mpegtsenc: support CODEC_ID_AAC_LATM

Peter Ross pross
Sat Jan 8 23:45:50 CET 2011


Signed-off-by: Mans Rullgard <mans at mansr.com>
(cherry picked from commit 4d54df8e07dca3e30ebcaffd1a0e750a876700a2)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59884f55d1eaf1481771ee97b977000b8be1ddc7
---

 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 6f35d6f..b58e84b 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -243,6 +243,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;




More information about the ffmpeg-cvslog mailing list