Fixed horrible, horrible, horrible RTMP timestamp bug.
This commit is contained in:
parent
1f319cc782
commit
4dffb10eb9
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue