fixed bitshift

This commit is contained in:
Martchus 2015-08-13 03:40:31 +02:00
parent 3d6c7f33d9
commit c59b2dd36a
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ void AdtsFrame::parseHeader(IoUtilities::BinaryReader &reader)
if((m_header1 & 0xFFF6u) != 0xFFF0u) {
throw InvalidDataException();
}
m_header2 = hasCrc() ? reader.readUInt56BE() : (reader.readUInt40BE() << 2);
m_header2 = hasCrc() ? reader.readUInt56BE() : (reader.readUInt40BE() << 16);
// check whether frame length is ok
if(totalSize() < headerSize()) {
throw InvalidDataException();