mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-12-05 09:21:59 +08:00
Merge 6119ac9c53
into 06ff8461c7
This commit is contained in:
commit
29de5185e7
@ -105,6 +105,16 @@ bool GB28181Process::inputRtp(bool, const char *data, size_t data_len) {
|
|||||||
_rtp_decoder[pt] = Factory::getRtpDecoderByCodecId(track->getCodecId());
|
_rtp_decoder[pt] = Factory::getRtpDecoderByCodecId(track->getCodecId());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case Rtsp::PT_L16_Mono: {
|
||||||
|
//L16
|
||||||
|
ref = std::make_shared<RtpReceiverImp>(16000, [this](RtpPacket::Ptr rtp) { onRtpSorted(std::move(rtp)); });
|
||||||
|
auto track = Factory::getTrackByCodecId(CodecL16, 16000, 1, 16);
|
||||||
|
CHECK(track);
|
||||||
|
track->setIndex(pt);
|
||||||
|
_interface->addTrack(track);
|
||||||
|
_rtp_decoder[pt] = Factory::getRtpDecoderByCodecId(track->getCodecId());
|
||||||
|
break;
|
||||||
|
}
|
||||||
default: {
|
default: {
|
||||||
if (pt == opus_pt) {
|
if (pt == opus_pt) {
|
||||||
// opus负载 [AUTO-TRANSLATED:defa6a8d]
|
// opus负载 [AUTO-TRANSLATED:defa6a8d]
|
||||||
|
Loading…
Reference in New Issue
Block a user