Small tweaks to various libraries and debugging messages.

This commit is contained in:
Thulinma 2016-07-06 11:16:17 +02:00
parent a071182da9
commit 1bf574acb8
6 changed files with 39 additions and 16 deletions

View file

@ -10,7 +10,8 @@ namespace h264 {
std::deque<nalu::nalData> res;
int offset = 0;
while (offset < len){
//Make sure entire packet is within len
while (offset+5 < len && Bit::btohl(data + offset)+offset+4 <= len){
nalu::nalData entry;
entry.nalSize = Bit::btohl(data + offset);
entry.nalType = (data + offset)[4] & 0x1F;