Avoid negative PTS in the RTSP protocol (#3929 #3815)

Optimaztion for issue #3815 ffmpeg rtsp pull stream has negative pts
This commit is contained in:
xiongguangjie
2024-09-26 10:59:41 +08:00
committed by GitHub
parent aca39bbfaa
commit de7afaf992
2 changed files with 5 additions and 3 deletions

View File

@@ -833,7 +833,7 @@ void RtspSession::handleReq_Play(const Parser &parser) {
rtp_info << "url=" << track->getControlUrl(_content_base) << ";"
<< "seq=" << track->_seq << ";"
<< "rtptime=" << (int) (track->_time_stamp * (track->_samplerate / 1000)) << ",";
<< "rtptime=" << (int64_t)(track->_time_stamp) * (int64_t)(track->_samplerate/ 1000) << ",";
}
rtp_info.pop_back();