mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor variable name
This commit is contained in:
parent
c6fb5e6fdd
commit
8121f9ab4e
2 changed files with 6 additions and 6 deletions
|
@ -443,8 +443,8 @@ SrsRtcSenderThread::SrsRtcSenderThread(SrsRtcSession* s, SrsUdpMuxSocket* u, int
|
|||
rtc_session = s;
|
||||
sendonly_ukt = u->copy_sendonly();
|
||||
|
||||
timestamp = 0;
|
||||
sequence = 0;
|
||||
audio_timestamp = 0;
|
||||
audio_sequence = 0;
|
||||
}
|
||||
|
||||
SrsRtcSenderThread::~SrsRtcSenderThread()
|
||||
|
@ -668,12 +668,12 @@ srs_error_t SrsRtcSenderThread::packet_opus(SrsSharedPtrMessage* shared_frame, S
|
|||
|
||||
SrsRtpSharedPacket* packet = new SrsRtpSharedPacket();
|
||||
packet->rtp_header.set_marker(true);
|
||||
if ((err = packet->create(timestamp, sequence++, kAudioSSRC, kOpusPayloadType, sample->bytes, sample->size)) != srs_success) {
|
||||
if ((err = packet->create(audio_timestamp, audio_sequence++, kAudioSSRC, kOpusPayloadType, sample->bytes, sample->size)) != srs_success) {
|
||||
return srs_error_wrap(err, "rtp packet encode");
|
||||
}
|
||||
|
||||
// TODO: FIXME: Why 960? Need Refactoring?
|
||||
timestamp += 960;
|
||||
audio_timestamp += 960;
|
||||
|
||||
rtp_packets.push_back(packet);
|
||||
|
||||
|
|
|
@ -128,8 +128,8 @@ private:
|
|||
uint16_t audio_payload_type;
|
||||
private:
|
||||
// TODO: FIXME: How to handle timestamp overflow?
|
||||
uint32_t timestamp;
|
||||
uint16_t sequence;
|
||||
uint32_t audio_timestamp;
|
||||
uint16_t audio_sequence;
|
||||
public:
|
||||
SrsUdpMuxSocket* sendonly_ukt;
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue