diff --git a/lib/rtmpchunks.cpp b/lib/rtmpchunks.cpp index e245b71f..16db90e5 100644 --- a/lib/rtmpchunks.cpp +++ b/lib/rtmpchunks.cpp @@ -464,10 +464,10 @@ bool RTMPStream::Chunk::Parse(Socket::Buffer & buffer) { return false; } //can't read timestamp indata = buffer.copy(i + 4); - timestamp = indata[i++ ] * 256 * 256 * 256; - timestamp += indata[i++ ] * 256 * 256; - timestamp += indata[i++ ] * 256; timestamp += indata[i++ ]; + timestamp += indata[i++ ] * 256; + timestamp += indata[i++ ] * 256 * 256; + timestamp = indata[i++ ] * 256 * 256 * 256; ts_delta = timestamp; }