mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpegtsenc: set audio_type according to st->disposition
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
60e7306643
commit
3f2d3a1904
@ -289,6 +289,13 @@ static void mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
|
|||||||
*q++ = lang->value[0];
|
*q++ = lang->value[0];
|
||||||
*q++ = lang->value[1];
|
*q++ = lang->value[1];
|
||||||
*q++ = lang->value[2];
|
*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 */
|
*q++ = 0; /* undefined type */
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user