mirror of
https://github.com/axiomatic-systems/Bento4.git
synced 2026-01-12 00:18:59 +08:00
Update Ap4TfraAtom.cpp
Update Ap4TfraAtom.cpp to fix Division-by-zero in Ap4TfraAtom.cpp:153
This commit is contained in:
@@ -150,7 +150,7 @@ AP4_TfraAtom::AP4_TfraAtom(AP4_UI32 size,
|
||||
}
|
||||
|
||||
// Check that it all fits
|
||||
if (((size - (AP4_FULL_ATOM_HEADER_SIZE+4+4+4)) / entry_count) < entry_size) {
|
||||
if (entry_count<=0 ((size - (AP4_FULL_ATOM_HEADER_SIZE+4+4+4)) / entry_count) < entry_size) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user