Skip to content

Unable to parse WAV files with RIFF and data chunk sizes of zero #468

@alex4401

Description

@alex4401

Hi,

It seems that it's possible for a .WAV file to be written (by other tools) with zero as the sizes of RIFF and data chunks, and I'm guessing this is similar to writing impossibly high numbers when stream-writing the file before the total size is known.

getid3 doesn't support this at the moment, resulting in warnings like Expecting "RIFF|JUNK|IDVX" at 544501110, found "WAVE" (57 41 56 45 ) - skipping rest of file and naturally missing metadata in the output array. libsndfile and SDL seem to have workarounds for this involving, well, guessing.

I've sent a test file (received from one of our users, file's been extracted from a game based on the Unity engine) to info@getid3.org, my email is in the wiki[.]gg domain and the issue number is in the subject line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions