mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
MP4 atom length is limited up to 31 bits.
32-bit value will be negative.
This commit is contained in:
parent
f38e32163e
commit
c9963af848
@ -27,6 +27,8 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <climits>
|
||||
|
||||
#include <tdebug.h>
|
||||
#include <tstring.h>
|
||||
#include "mp4atom.h"
|
||||
@ -60,8 +62,8 @@ MP4::Atom::Atom(File *file)
|
||||
length = longLength;
|
||||
}
|
||||
else {
|
||||
if(longLength <= 0xFFFFFFFF) {
|
||||
// The atom has a 64-bit length, but it's actually a 32-bit value
|
||||
if(longLength <= LONG_MAX) {
|
||||
// The atom has a 64-bit length, but it's actually a 31-bit value
|
||||
length = (long)longLength;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user