mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
Merge branch 'rtc_audio_delay' of github.com:mtdxc/ZLMediaKit
This commit is contained in:
commit
6596eec069
@ -15,6 +15,7 @@ namespace mediakit {
|
|||||||
|
|
||||||
RtpTrack::RtpTrack() {
|
RtpTrack::RtpTrack() {
|
||||||
setOnSort([this](uint16_t seq, RtpPacket::Ptr &packet) {
|
setOnSort([this](uint16_t seq, RtpPacket::Ptr &packet) {
|
||||||
|
if (packet->getPayloadSize())
|
||||||
onRtpSorted(std::move(packet));
|
onRtpSorted(std::move(packet));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -49,7 +50,8 @@ RtpPacket::Ptr RtpTrack::inputRtp(TrackType type, int sample_rate, uint8_t *ptr,
|
|||||||
}
|
}
|
||||||
if (!header->getPayloadSize(len)) {
|
if (!header->getPayloadSize(len)) {
|
||||||
//无有效负载的rtp包
|
//无有效负载的rtp包
|
||||||
return nullptr;
|
InfoL << "收到rtp空包:" << len << " seq:" << ntohs(header->seq);
|
||||||
|
//return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//比对缓存ssrc
|
//比对缓存ssrc
|
||||||
|
Loading…
Reference in New Issue
Block a user