Fixed zero-timestamp RTMP push output
This commit is contained in:
parent
61feff7ba1
commit
419686f50c
1 changed files with 5 additions and 1 deletions
|
@ -286,7 +286,11 @@ namespace Mist {
|
|||
data_len += dheader_len;
|
||||
|
||||
unsigned int timestamp = thisPacket.getTime() - rtmpOffset;
|
||||
if (rtmpOffset > thisPacket.getTime()){timestamp = 0;}//make sure we don't go negative
|
||||
//make sure we don't go negative
|
||||
if (rtmpOffset > thisPacket.getTime()){
|
||||
timestamp = 0;
|
||||
rtmpOffset = thisPacket.getTime();
|
||||
}
|
||||
|
||||
bool allow_short = RTMPStream::lastsend.count(4);
|
||||
RTMPStream::Chunk & prev = RTMPStream::lastsend[4];
|
||||
|
|
Loading…
Add table
Reference in a new issue