mpegtsenc: set audio_type according to st->disposition

Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 3f2d3a1904)
This commit is contained in:
Anssi Hannula 2011-02-14 18:43:41 +00:00 committed by Michael Niedermayer
parent e2db6b590f
commit 932a45a594
1 changed files with 7 additions and 0 deletions

View File

@ -289,6 +289,13 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
*q++ = lang->value[0];
*q++ = lang->value[1];
*q++ = lang->value[2];
if (st->disposition & AV_DISPOSITION_CLEAN_EFFECTS)
*q++ = 0x01;
else if (st->disposition & AV_DISPOSITION_HEARING_IMPAIRED)
*q++ = 0x02;
else if (st->disposition & AV_DISPOSITION_VISUAL_IMPAIRED)
*q++ = 0x03;
else
*q++ = 0; /* undefined type */
}
break;