Fixed RTMP implementation to match 2012 spec update and not 2009 original spec

This commit is contained in:
Thulinma 2017-12-30 00:44:58 +01:00
parent ec2dda0bff
commit dca157228e
2 changed files with 16 additions and 6 deletions

View file

@ -455,7 +455,7 @@ bool RTMPStream::Chunk::Parse(Socket::Buffer & buffer) {
DEBUG_MSG(DLVL_DONTEVEN, "Parsing RTMP chunk result: len_left=%d, real_len=%d", len_left, real_len);
//read extended timestamp, if necessary
if (ts_header == 0x00ffffff && headertype != 0xC0) {
if (ts_header == 0x00ffffff) {
if (!buffer.available(i + 4)) {
return false;
} //can't read timestamp