diff options
author | Anssi Hannula <anssi.hannula@iki.fi> | 2011-02-14 18:43:41 +0000 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-02-14 23:18:26 +0000 |
commit | 3f2d3a1904c1ccdfdc3bd03a6dd6567986f681d9 (patch) | |
tree | 11f56adb2cd715862bc8e310289b60e5c37bad0a /libavformat/mpegtsenc.c | |
parent | 60e7306643054e93dfc1962f89b24554bb76e18a (diff) | |
download | ffmpeg-3f2d3a1904c1ccdfdc3bd03a6dd6567986f681d9.tar.gz |
mpegtsenc: set audio_type according to st->disposition
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r-- | libavformat/mpegtsenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index b1bccd1a8b..6945b4b3ba 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -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; |