时间戳改为64位

This commit is contained in:
ziyue
2022-08-08 17:13:39 +08:00
parent 143580d780
commit 9c3b8a6a95
44 changed files with 143 additions and 143 deletions

View File

@@ -34,7 +34,7 @@ static bool loadFile(const char *path){
return false;
}
uint32_t timeStamp_last = 0;
uint64_t timeStamp_last = 0;
uint16_t len;
char rtp[0xFFFF];
struct sockaddr_storage addr = {0};
@@ -57,7 +57,7 @@ static bool loadFile(const char *path){
break;
}
total_size += len;
uint32_t timeStamp;
uint64_t timeStamp;
RtpSelector::Instance().inputRtp(sock, rtp, len, (struct sockaddr *)&addr, &timeStamp);
auto diff = timeStamp - timeStamp_last;