Fixed RTMP extended timestamp read
This commit is contained in:
parent
3a07633de5
commit
5cce37c521
1 changed files with 3 additions and 3 deletions
|
@ -464,10 +464,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++ ] * 256 * 256 * 256;
|
|
||||||
timestamp += indata[i++ ] * 256 * 256;
|
|
||||||
timestamp += indata[i++ ] * 256;
|
|
||||||
timestamp += indata[i++ ];
|
timestamp += indata[i++ ];
|
||||||
|
timestamp += indata[i++ ] * 256;
|
||||||
|
timestamp += indata[i++ ] * 256 * 256;
|
||||||
|
timestamp = indata[i++ ] * 256 * 256 * 256;
|
||||||
ts_delta = timestamp;
|
ts_delta = timestamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue