Fixed MP4 issues for box sizes >= 0x80000000

This commit is contained in:
Thulinma 2015-01-27 12:46:26 +01:00
parent 4e535799af
commit 99692008a7

View file

@ -86,7 +86,7 @@ namespace MP4 {
///\todo make good working calcBoxSize with size and payloadoffset calculation
unsigned long int calcBoxSize(char readVal[16]) {
return (readVal[0] << 24) | (readVal[1] << 16) | (readVal[2] << 8) | (readVal[3]);
return (unsigned int)ntohl(((int *)readVal)[0]);
}
bool skipBox(FILE * newData) {