Fixed horrible, horrible, horrible RTMP timestamp bug.

This commit is contained in:
Thulinma 2016-05-25 16:40:21 +02:00
parent 1f319cc782
commit 4dffb10eb9

View file

@ -460,10 +460,10 @@ bool RTMPStream::Chunk::Parse(Socket::Buffer & buffer) {
return false; return false;
} //can't read timestamp } //can't read timestamp
indata = buffer.copy(i + 4); indata = buffer.copy(i + 4);
timestamp += indata[i++ ]; timestamp = indata[i++ ];
timestamp += indata[i++ ] * 256; timestamp += indata[i++ ] * 256;
timestamp += indata[i++ ] * 256 * 256; timestamp += indata[i++ ] * 256 * 256;
timestamp = indata[i++ ] * 256 * 256 * 256; timestamp += indata[i++ ] * 256 * 256 * 256;
ts_delta = timestamp; ts_delta = timestamp;
} }