提交 932a45a5 编写于 作者: A Anssi Hannula 提交者: Michael Niedermayer

mpegtsenc: set audio_type according to st->disposition

Signed-off-by: NMans Rullgard <mans@mansr.com>
(cherry picked from commit 3f2d3a19)
上级 e2db6b59
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册