Fixed RTMP extended timestamp read

This commit is contained in:
Thulinma 2015-11-02 17:14:38 +01:00
parent 3a07633de5
commit 5cce37c521

View file

@ -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;
}