mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 16:47:28 +08:00
修复时间戳换算溢出的bug
This commit is contained in:
parent
d7c00e91e0
commit
6e03e5a845
@ -499,7 +499,7 @@ bool RtspPlayer::handleOneRtp(int iTrackidx, unsigned char *pucData, unsigned in
|
|||||||
//时间戳
|
//时间戳
|
||||||
memcpy(&rtppt.timeStamp, pucData+4, 4);//内存对齐
|
memcpy(&rtppt.timeStamp, pucData+4, 4);//内存对齐
|
||||||
//时间戳转换成毫秒
|
//时间戳转换成毫秒
|
||||||
rtppt.timeStamp = ntohl(rtppt.timeStamp) * 1000 / track->_samplerate;
|
rtppt.timeStamp = ntohl(rtppt.timeStamp) * 1000L / track->_samplerate;
|
||||||
//ssrc
|
//ssrc
|
||||||
memcpy(&rtppt.ssrc,pucData+8,4);//内存对齐
|
memcpy(&rtppt.ssrc,pucData+8,4);//内存对齐
|
||||||
rtppt.ssrc = ntohl(rtppt.ssrc);
|
rtppt.ssrc = ntohl(rtppt.ssrc);
|
||||||
|
Loading…
Reference in New Issue
Block a user