mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #360, fix build bug for centos7.
This commit is contained in:
parent
b6feb0742f
commit
e818f36316
3 changed files with 5 additions and 4 deletions
|
@ -507,7 +507,7 @@ int SrsTsPacket::decode(SrsStream* stream, SrsTsMessage** ppmsg)
|
|||
int8_t ccv = stream->read_1bytes();
|
||||
transport_scrambling_control = (SrsTsScrambled)((ccv >> 6) & 0x03);
|
||||
adaption_field_control = (SrsTsAdaptationFieldType)((ccv >> 4) & 0x03);
|
||||
continuity_counter = (SrsTsPid)(ccv & 0x0F);
|
||||
continuity_counter = ccv & 0x0F;
|
||||
|
||||
// TODO: FIXME: create pids map when got new pid.
|
||||
|
||||
|
@ -2196,7 +2196,7 @@ int SrsTsPayloadPATProgram::encode(SrsStream* stream)
|
|||
|
||||
SrsTsPayloadPAT::SrsTsPayloadPAT(SrsTsPacket* p) : SrsTsPayloadPSI(p)
|
||||
{
|
||||
const1_value = 3;
|
||||
const3_value = 3;
|
||||
}
|
||||
|
||||
SrsTsPayloadPAT::~SrsTsPayloadPAT()
|
||||
|
@ -2228,7 +2228,7 @@ int SrsTsPayloadPAT::psi_decode(SrsStream* stream)
|
|||
// 1B
|
||||
int8_t cniv = stream->read_1bytes();
|
||||
|
||||
const1_value = (cniv >> 6) & 0x03;
|
||||
const3_value = (cniv >> 6) & 0x03;
|
||||
version_number = (cniv >> 1) & 0x1F;
|
||||
current_next_indicator = cniv & 0x01;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue