bool bit;
for( bit = 0; !bit && !eonalu; leadbits++ )
bit = getBits(1);
- if (eonalu) return true;
+ if (eonalu) return 0;
return ((1 << leadbits)-1)+getBits(leadbits);
}
}
}
- pinfo.log2_max_frame_num=nalu.getUe()+4; //log2framenum
+ UINT checkMaxFrameNum = nalu.getUe() + 4; //log2framenum
+
+ if (checkMaxFrameNum < 13) {
+ pinfo.log2_max_frame_num = checkMaxFrameNum;
+ }
+ else {
+ pattern=0xFFFFFF;
+ pos+=nalu.getPos();
+ continue;
+ }
+
UINT temp=nalu.getUe();
if (temp==0) //pict order
nalu.getUe();