mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
rtsp不允许覆盖时间戳(pts)
This commit is contained in:
parent
4a7d17334c
commit
491ed6f83d
@ -932,12 +932,6 @@ inline void RtspSession::send_NotAcceptable() {
|
|||||||
|
|
||||||
|
|
||||||
void RtspSession::onRtpSorted(const RtpPacket::Ptr &rtppt, int trackidx) {
|
void RtspSession::onRtpSorted(const RtpPacket::Ptr &rtppt, int trackidx) {
|
||||||
GET_CONFIG(bool,modify_stamp,Rtsp::kModifyStamp);
|
|
||||||
if(modify_stamp){
|
|
||||||
int64_t dts_out;
|
|
||||||
_stamp[trackidx].revise(rtppt->timeStamp, rtppt->timeStamp, dts_out, dts_out, true);
|
|
||||||
rtppt->timeStamp = dts_out;
|
|
||||||
}
|
|
||||||
_pushSrc->onWrite(rtppt, false);
|
_pushSrc->onWrite(rtppt, false);
|
||||||
}
|
}
|
||||||
inline void RtspSession::onRcvPeerUdpData(int intervaled, const Buffer::Ptr &pBuf, const struct sockaddr& addr) {
|
inline void RtspSession::onRcvPeerUdpData(int intervaled, const Buffer::Ptr &pBuf, const struct sockaddr& addr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user