avformat/mpegtsenc: reindent the last commit

Reviewed-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
Limin Wang 2020-07-08 10:40:33 +08:00
parent cf81d64282
commit a35facfeb3

View File

@ -484,16 +484,15 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
switch (st->codecpar->codec_type) { switch (st->codecpar->codec_type) {
case AVMEDIA_TYPE_AUDIO: case AVMEDIA_TYPE_AUDIO:
if (ts->flags & MPEGTS_FLAG_SYSTEM_B) { if (ts->flags & MPEGTS_FLAG_SYSTEM_B) {
if (st->codecpar->codec_id==AV_CODEC_ID_AC3) { if (st->codecpar->codec_id==AV_CODEC_ID_AC3) {
*q++=0x6a; // AC3 descriptor see A038 DVB SI *q++=0x6a; // AC3 descriptor see A038 DVB SI
*q++=1; // 1 byte, all flags sets to 0 *q++=1; // 1 byte, all flags sets to 0
*q++=0; // omit all fields... *q++=0; // omit all fields...
} } else if (st->codecpar->codec_id==AV_CODEC_ID_EAC3) {
else if (st->codecpar->codec_id==AV_CODEC_ID_EAC3) { *q++=0x7a; // EAC3 descriptor see A038 DVB SI
*q++=0x7a; // EAC3 descriptor see A038 DVB SI *q++=1; // 1 byte, all flags sets to 0
*q++=1; // 1 byte, all flags sets to 0 *q++=0; // omit all fields...
*q++=0; // omit all fields... }
}
} }
if (st->codecpar->codec_id==AV_CODEC_ID_S302M) if (st->codecpar->codec_id==AV_CODEC_ID_S302M)
put_registration_descriptor(&q, MKTAG('B', 'S', 'S', 'D')); put_registration_descriptor(&q, MKTAG('B', 'S', 'S', 'D'));