代码优化

This commit is contained in:
xiongziliang
2020-05-28 12:44:25 +08:00
parent 0548256c30
commit ebc1ee2c6e
2 changed files with 1 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ static bool loadFile(const char *path){
RtpSelector::Instance().inputRtp(nullptr,rtp,len, &addr,&timeStamp);
if(timeStamp_last){
auto diff = timeStamp - timeStamp_last;
if(diff > 0){
if(diff > 0 && diff < 500){
usleep(diff * 1000);
}
}