Skip to content

mdat atom getting parsed before chap #2510

@Wombarly

Description

@Wombarly

Is there an existing issue for this?

  • I have searched the existing issues

music-metadata version

11.9.0

Current Behavior

I'm trying to parse an audiobook, which I converted to an m4a (m4b?). I'm unsure which software I used to originally convert it when I downloaded it. But its chapter data isn't getting parsed, I can see it in VLC and other tools.

I used the debugger in my browser to figure out what was going on. I noticed that it is parsing the mdat atom before it gets to the trak atom (or rather the chap in parseTrackBox, which is setting the chapterList).

Because the mdat parser is processing the chapter data, which requires chapterList to be set, it skips it it.

I tried to truncate it to get a sample, but when I do that it wont parse at all.

Expected Behavior

No response

Attached audio sample?

  • I have provided sufficient information to reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, will addressed with high priority

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions