rtsp and rtp h264 lowlatency mode config

This commit is contained in:
xiongguangjie
2022-10-19 14:20:53 +08:00
parent 4a51d6b488
commit 0d2e035215
5 changed files with 33 additions and 5 deletions

View File

@@ -398,6 +398,12 @@ private:
//但是却对性能提升很大,这样做还是比较划算的
GET_CONFIG(int, mergeWriteMS, General::kMergeWriteMS);
GET_CONFIG(int, rtspLowLatency, Rtsp::KLowLatency);
if(std::is_same<packet, RtpPacket>::value && rtspLowLatency){
return true;
}
return std::is_same<packet, RtpPacket>::value ? false : (mergeWriteMS <= 0);
}