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
|
@ -31,6 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
#ifdef SRS_OSX
|
#ifdef SRS_OSX
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <stdlib.h>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include <srs_kernel_log.hpp>
|
#include <srs_kernel_log.hpp>
|
||||||
|
|
|
@ -507,7 +507,7 @@ int SrsTsPacket::decode(SrsStream* stream, SrsTsMessage** ppmsg)
|
||||||
int8_t ccv = stream->read_1bytes();
|
int8_t ccv = stream->read_1bytes();
|
||||||
transport_scrambling_control = (SrsTsScrambled)((ccv >> 6) & 0x03);
|
transport_scrambling_control = (SrsTsScrambled)((ccv >> 6) & 0x03);
|
||||||
adaption_field_control = (SrsTsAdaptationFieldType)((ccv >> 4) & 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.
|
// TODO: FIXME: create pids map when got new pid.
|
||||||
|
|
||||||
|
@ -2196,7 +2196,7 @@ int SrsTsPayloadPATProgram::encode(SrsStream* stream)
|
||||||
|
|
||||||
SrsTsPayloadPAT::SrsTsPayloadPAT(SrsTsPacket* p) : SrsTsPayloadPSI(p)
|
SrsTsPayloadPAT::SrsTsPayloadPAT(SrsTsPacket* p) : SrsTsPayloadPSI(p)
|
||||||
{
|
{
|
||||||
const1_value = 3;
|
const3_value = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
SrsTsPayloadPAT::~SrsTsPayloadPAT()
|
SrsTsPayloadPAT::~SrsTsPayloadPAT()
|
||||||
|
@ -2228,7 +2228,7 @@ int SrsTsPayloadPAT::psi_decode(SrsStream* stream)
|
||||||
// 1B
|
// 1B
|
||||||
int8_t cniv = stream->read_1bytes();
|
int8_t cniv = stream->read_1bytes();
|
||||||
|
|
||||||
const1_value = (cniv >> 6) & 0x03;
|
const3_value = (cniv >> 6) & 0x03;
|
||||||
version_number = (cniv >> 1) & 0x1F;
|
version_number = (cniv >> 1) & 0x1F;
|
||||||
current_next_indicator = cniv & 0x01;
|
current_next_indicator = cniv & 0x01;
|
||||||
|
|
||||||
|
|
|
@ -1340,7 +1340,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* reverved value, must be '1'
|
* reverved value, must be '1'
|
||||||
*/
|
*/
|
||||||
int8_t const1_value; //2bits
|
int8_t const3_value; //2bits
|
||||||
/**
|
/**
|
||||||
* This 5-bit field is the version number of the whole Program Association Table. The version number
|
* This 5-bit field is the version number of the whole Program Association Table. The version number
|
||||||
* shall be incremented by 1 modulo 32 whenever the definition of the Program Association Table changes. When the
|
* shall be incremented by 1 modulo 32 whenever the definition of the Program Association Table changes. When the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue