Skip to content

Conversation

@twvd
Copy link
Contributor

@twvd twvd commented Nov 9, 2025

The previous code allocated 512 bytes to accomodate a FLUX chunk if the resulting file has flux tracks, but the actual size of a FLUX chunk is 168 bytes (8 bytes header + 160 bytes chunk).

When MAME allocated 512 bytes, this left 344 zero-bytes padding in the file that other tools would interpret as invalid chunks.

See file format reference: https://applesaucefdc.com/moof-reference/

The previous code allocated 512 bytes to accomodate a FLUX chunk
if the resulting file has flux tracks, but the actual size of a
FLUX chunk is 168 bytes (8 bytes header + 160 bytes chunk).

When MAME allocated 512 bytes, this left 344 zero-bytes padding in
the file that other tools would interpret as invalid chunks.

See file format reference: https://applesaucefdc.com/moof-reference/
@galibert galibert merged commit 0d9909d into mamedev:master Nov 9, 2025
6 checks passed
@twvd twvd deleted the moofflux branch November 9, 2025 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants