Can we allow processing of mp4 with bad atom at end of mdata atom

Description

I think there may be some issue withe the parser, using 3rd party library (Atomic Parsley), its reads to the end of the file okay (although not clear what the last tag is)

Atom free @ 173667 of size: 428499, ends @ 602166
Atom mdat @ 602166 of size: 5519676, ends @ 6121842
Atom ª²y @ 6121842 of size: 36711, ends @ 6158553

But when SongKong reads it, its read the length of last tag incorrectly as a minus number

15/06/2023 15.17.51:BST:Mp4BoxHeader:update:FINEST: Mp4BoxHeader id:free:length:428499
15/06/2023 15.17.51:BST:Mp4BoxHeader:update:FINEST: Mp4BoxHeader id:mdat:length:5519676
15/06/2023 15.17.51:BST:Mp4BoxHeader:update:FINEST: Mp4BoxHeader id: ª²y:length:-1116867406

See

Activity

Show:

IJabz December 1, 2023 at 10:37 AM

Because the file is corrupt, not safe way to try and fix corruption

Won't Fix

Details

Assignee

Reporter

Forum Username

Affects versions

Priority

Created June 15, 2023 at 2:31 PM
Updated December 1, 2023 at 10:37 AM
Resolved December 1, 2023 at 10:37 AM