Change transport_stream_id to 0

As there is a single transport stream in tsMuxer muxes and in Blurays, the transport_stream_id does not really matter. However, all blurays I've seen have transport_stream_id = 0 so applying the same makes comparisons easier.
master
jcdr428 2022-06-28 20:38:25 +01:00
parent 2f5e4902a7
commit 906638bdfb
2 changed files with 2 additions and 2 deletions

View File

@ -1137,7 +1137,7 @@ void TSMuxer::buildPAT()
tsPacket->payloadStart = 1;
m_pat.pmtPids[SIT_PID] = 0; // add NIT. program number = 0
m_pat.pmtPids[DEFAULT_PMT_PID] = 1; // add PMT. program number = 1
m_pat.transport_stream_id = 1; // version of transport stream
m_pat.transport_stream_id = 0; // version of transport stream
uint32_t size = m_pat.serialize(m_patBuffer + TSPacket::TS_HEADER_SIZE, TS_FRAME_SIZE - TSPacket::TS_HEADER_SIZE);
memset(m_patBuffer + TSPacket::TS_HEADER_SIZE + size, 0xff, TS_FRAME_SIZE - TSPacket::TS_HEADER_SIZE - size);
}

View File

@ -106,7 +106,7 @@ static inline int get16(uint8_t** pp)
return c;
}
TS_program_association_section::TS_program_association_section() : transport_stream_id(1)
TS_program_association_section::TS_program_association_section() : transport_stream_id(0)
{
m_nitPID = -1;
// av_crc_init(tmpAvCrc, 0, 32, 0x04c11db7, sizeof(AVCRC)*257);