From c59b2dd36a334acd67809342ac00afcfc1f50f69 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 13 Aug 2015 03:40:31 +0200 Subject: [PATCH] fixed bitshift --- adts/adtsframe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adts/adtsframe.cpp b/adts/adtsframe.cpp index f8142bb..d31c960 100644 --- a/adts/adtsframe.cpp +++ b/adts/adtsframe.cpp @@ -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();