mpegtsenc: EAC3 support
Reviewed-by: Baptiste Coudurier <baptiste.coudurier@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d1590a0a2b
commit
f68742bf5b
@ -293,6 +293,12 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
|
|||||||
/* write optional descriptors here */
|
/* write optional descriptors here */
|
||||||
switch(st->codec->codec_type) {
|
switch(st->codec->codec_type) {
|
||||||
case AVMEDIA_TYPE_AUDIO:
|
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) {
|
if (lang) {
|
||||||
char *p;
|
char *p;
|
||||||
char *next = lang->value;
|
char *next = lang->value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user