mirror of
https://github.com/ossrs/srs.git
synced 2025-02-15 04:42:04 +00:00
Fix build failed bug
This commit is contained in:
parent
32efc71ba9
commit
79d46fa2e1
1 changed files with 15 additions and 10 deletions
|
@ -812,9 +812,10 @@ srs_error_t SrsRtcSenderThread::packet_single_nalu(SrsSharedPtrMessage* msg, Srs
|
||||||
packet->rtp_header.set_payload_type(video_payload_type);
|
packet->rtp_header.set_payload_type(video_payload_type);
|
||||||
|
|
||||||
SrsRtpRawPayload* raw = new SrsRtpRawPayload();
|
SrsRtpRawPayload* raw = new SrsRtpRawPayload();
|
||||||
|
packet->payload = raw;
|
||||||
|
|
||||||
raw->payload = sample->bytes;
|
raw->payload = sample->bytes;
|
||||||
raw->nn_payload = sample->size;
|
raw->nn_payload = sample->size;
|
||||||
packet->payload = raw;
|
|
||||||
|
|
||||||
*ppacket = packet;
|
*ppacket = packet;
|
||||||
|
|
||||||
|
@ -849,20 +850,24 @@ srs_error_t SrsRtcSenderThread::packet_stap_a(SrsSource* source, SrsSharedPtrMes
|
||||||
packet->rtp_header.set_payload_type(video_payload_type);
|
packet->rtp_header.set_payload_type(video_payload_type);
|
||||||
|
|
||||||
SrsRtpSTAPPayload* stap = new SrsRtpSTAPPayload();
|
SrsRtpSTAPPayload* stap = new SrsRtpSTAPPayload();
|
||||||
|
packet->payload = stap;
|
||||||
|
|
||||||
uint8_t header = sps[0];
|
uint8_t header = sps[0];
|
||||||
|
|
||||||
stap->nri = (SrsAvcNaluType)header;
|
stap->nri = (SrsAvcNaluType)header;
|
||||||
stap->nn_nalus = 2;
|
|
||||||
stap->nalus = new SrsSample[stap->nn_nalus];
|
|
||||||
|
|
||||||
stap->nalus[0].bytes = (char*)&sps[0];
|
if (true) {
|
||||||
stap->nalus[0].size = (int)sps.size();
|
SrsSample* sample = new SrsSample();
|
||||||
|
sample->bytes = (char*)&sps[0];
|
||||||
|
sample->size = (int)sps.size();
|
||||||
|
stap->nalus.push_back(sample);
|
||||||
|
}
|
||||||
|
|
||||||
stap->nalus[1].bytes = (char*)&pps[0];
|
if (true) {
|
||||||
stap->nalus[1].size = (int)pps.size();
|
SrsSample* sample = new SrsSample();
|
||||||
|
sample->bytes = (char*)&pps[0];
|
||||||
packet->payload = stap;
|
sample->size = (int)pps.size();
|
||||||
|
stap->nalus.push_back(sample);
|
||||||
|
}
|
||||||
|
|
||||||
*ppacket = packet;
|
*ppacket = packet;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue