We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e228196 commit 2191f92Copy full SHA for 2191f92
1 file changed
src/atom_ftyp.cpp
@@ -53,8 +53,8 @@ void MP4FtypAtom::Generate()
53
54
void MP4FtypAtom::Read()
55
{
56
- if ( m_size == 0ULL )
57
- return;
+ if ( m_size < 8ULL )
+ throw new Exception( "Invalid ftyp atom size", __FILE__, __LINE__, __FUNCTION__ );
58
59
compatibleBrands.SetCount( (m_size - 8) / 4 ); // brands array fills rest of atom
60
MP4Atom::Read();
0 commit comments