summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMean <[email protected]>2011-11-02 20:41:24 +0100
committerMichael Niedermayer <[email protected]>2011-11-02 20:41:24 +0100
commitf68742bf5b5e6858cdba98b57d8b52c1964b37d2 (patch)
treeaa20dd4dc0490ab6c442a41f995450b79d23740f
parentd1590a0a2be7c07ee6d7d81803e895173e38227d (diff)
mpegtsenc: EAC3 support
Reviewed-by: Baptiste Coudurier <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavformat/mpegtsenc.c6
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;