修改时间戳溢出的bug

This commit is contained in:
xiongziliang
2018-12-25 09:30:49 +08:00
parent a904a42125
commit 8b7986b4fc
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ bool RtpReceiver::handleOneRtp(int iTrackidx,SdpTrack::Ptr &track, unsigned char
return false;
}
//时间戳转换成毫秒
rtppt.timeStamp = ntohl(rtppt.timeStamp) * 1000L / track->_samplerate;
rtppt.timeStamp = ntohl(rtppt.timeStamp) * 1000LL / track->_samplerate;
//ssrc
memcpy(&rtppt.ssrc,pucData+8,4);//内存对齐
rtppt.ssrc = ntohl(rtppt.ssrc);