修复拼写错误

This commit is contained in:
xiongziliang
2020-05-25 13:51:00 +08:00
parent 06d61cf195
commit 893564d0be
21 changed files with 89 additions and 89 deletions

View File

@@ -28,18 +28,18 @@ RtpPacket::Ptr RtpInfo::makeRtp(TrackType type, const void* data, unsigned int l
pucRtp[2] = ui16RtpLen >> 8;
pucRtp[3] = ui16RtpLen & 0x00FF;
pucRtp[4] = 0x80;
pucRtp[5] = (mark << 7) | _ui8PlayloadType;
pucRtp[5] = (mark << 7) | _ui8PayloadType;
memcpy(&pucRtp[6], &sq, 2);
memcpy(&pucRtp[8], &ts, 4);
//ssrc
memcpy(&pucRtp[12], &sc, 4);
if(data){
//playload
//payload
memcpy(&pucRtp[16], data, len);
}
rtppkt->PT = _ui8PlayloadType;
rtppkt->PT = _ui8PayloadType;
rtppkt->interleaved = _ui8Interleaved;
rtppkt->mark = mark;
rtppkt->sequence = _ui16Sequence;

View File

@@ -66,7 +66,7 @@ public:
RtpInfo(uint32_t ui32Ssrc,
uint32_t ui32MtuSize,
uint32_t ui32SampleRate,
uint8_t ui8PlayloadType,
uint8_t ui8PayloadType,
uint8_t ui8Interleaved) {
if(ui32Ssrc == 0){
ui32Ssrc = ((uint64_t)this) & 0xFFFFFFFF;
@@ -74,7 +74,7 @@ public:
_ui32Ssrc = ui32Ssrc;
_ui32SampleRate = ui32SampleRate;
_ui32MtuSize = ui32MtuSize;
_ui8PlayloadType = ui8PlayloadType;
_ui8PayloadType = ui8PayloadType;
_ui8Interleaved = ui8Interleaved;
}
@@ -84,8 +84,8 @@ public:
return _ui8Interleaved;
}
int getPlayloadType() const {
return _ui8PlayloadType;
int getPayloadType() const {
return _ui8PayloadType;
}
int getSampleRate() const {
@@ -110,7 +110,7 @@ protected:
uint32_t _ui32Ssrc;
uint32_t _ui32SampleRate;
uint32_t _ui32MtuSize;
uint8_t _ui8PlayloadType;
uint8_t _ui8PayloadType;
uint8_t _ui8Interleaved;
uint16_t _ui16Sequence = 0;
uint32_t _ui32TimeStamp = 0;

View File

@@ -188,11 +188,11 @@ public:
/**
* 构造sdp
* @param sample_rate 采样率
* @param playload_type pt类型
* @param payload_type pt类型
*/
Sdp(uint32_t sample_rate, uint8_t playload_type){
Sdp(uint32_t sample_rate, uint8_t payload_type){
_sample_rate = sample_rate;
_playload_type = playload_type;
_payload_type = payload_type;
}
virtual ~Sdp(){}
@@ -207,8 +207,8 @@ public:
* 获取pt
* @return
*/
uint8_t getPlayloadType() const{
return _playload_type;
uint8_t getPayloadType() const{
return _payload_type;
}
/**
@@ -219,7 +219,7 @@ public:
return _sample_rate;
}
private:
uint8_t _playload_type;
uint8_t _payload_type;
uint32_t _sample_rate;
};