兼容rtp时间戳一直为0的流

This commit is contained in:
夏楚 2021-01-09 17:53:21 +08:00 committed by GitHub
parent 0e3c21932d
commit 48a1f6ea6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ void GB28181Process::onRtpSorted(const RtpPacket::Ptr &rtp, int) {
WarnL << "rtp payload type未识别(" << (int) rtp->PT << "),已按ts或ps负载处理";
}
//ts或ps负载
_rtp_decoder = std::make_shared<CommonRtpDecoder>(CodecInvalid, 256 * 1024);
_rtp_decoder = std::make_shared<CommonRtpDecoder>(CodecInvalid, 32 * 1024);
//设置dump目录
GET_CONFIG(string, dump_dir, RtpProxy::kDumpDir);
if (!dump_dir.empty()) {
@ -123,4 +123,4 @@ void GB28181Process::onRtpDecode(const Frame::Ptr &frame) {
}
}//namespace mediakit
#endif//defined(ENABLE_RTPPROXY)
#endif//defined(ENABLE_RTPPROXY)