[FFmpeg-cvslog] mpegtsenc: EAC3 support

Mean git at videolan.org
Wed Nov 2 20:50:45 CET 2011


ffmpeg | branch: master | Mean <fixounet at free.fr> | Wed Nov  2 20:41:24 2011 +0100| [f68742bf5b5e6858cdba98b57d8b52c1964b37d2] | committer: Michael Niedermayer

mpegtsenc: EAC3 support

Reviewed-by: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavformat/mpegtsenc.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index fa773eb..f072f80 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -293,6 +293,12 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
         /* write optional descriptors here */
         switch(st->codec->codec_type) {
         case AVMEDIA_TYPE_AUDIO:
+            if(st->codec->codec_id==CODEC_ID_EAC3){
+                *q++=0x7a; // EAC3 descriptor see A038 DVB SI
+                *q++=1; // 1 byte, all flags sets to 0
+                *q++=0; // omit all fields...
+            }
+
             if (lang) {
                 char *p;
                 char *next = lang->value;



More information about the ffmpeg-cvslog mailing list