Stop MP4 analyser from crashing on Apple-generated .mov HEVC boxes
This commit is contained in:
parent
082bca3c30
commit
a8139e1b99
1 changed files with 2 additions and 2 deletions
|
@ -2734,7 +2734,7 @@ namespace MP4{
|
|||
}
|
||||
size_t count = 0;
|
||||
size_t offset = 78;
|
||||
while (offset < payloadSize()){
|
||||
while (offset <= payloadSize() - 8){
|
||||
offset += getBoxLen(offset);
|
||||
count++;
|
||||
}
|
||||
|
@ -2878,7 +2878,7 @@ namespace MP4{
|
|||
}
|
||||
size_t count = 0;
|
||||
size_t offset = 28;
|
||||
while (offset < payloadSize()){
|
||||
while (offset <= payloadSize() - 8){
|
||||
offset += getBoxLen(offset);
|
||||
count++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue