diff options
author | Mean <fixounet@free.fr> | 2011-11-02 20:41:24 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-11-02 20:41:24 +0100 |
commit | f68742bf5b5e6858cdba98b57d8b52c1964b37d2 (patch) | |
tree | aa20dd4dc0490ab6c442a41f995450b79d23740f | |
parent | d1590a0a2be7c07ee6d7d81803e895173e38227d (diff) | |
download | ffmpeg-f68742bf5b5e6858cdba98b57d8b52c1964b37d2.tar.gz |
mpegtsenc: EAC3 support
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mpegtsenc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index fa773ebbee..f072f80d80 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; |