Skip to content

Fix handling of file offsets with mixed sector lengths#9

Merged
aperezbios merged 2 commits intomainfrom
dev_fix_mixed_sector_length
Mar 24, 2026
Merged

Fix handling of file offsets with mixed sector lengths#9
aperezbios merged 2 commits intomainfrom
dev_fix_mixed_sector_length

Conversation

@PetteriAimonen
Copy link
Copy Markdown
Collaborator

Even though data tracks can be stored with 2048 bytes per sector, the offsets of audio tracks following it are calculated based on 2352 byte sectors. This results in padding in the file.

I found this a bit surprising, but the behavior of cdrdao matches.

@morio This fixes the "lacrazyc.zip" test case for me.

Even though data tracks can be stored with 2048 bytes per sector,
the offsets of audio tracks following it are calculated based on 2352
byte sectors. This results in padding in the file.
@aperezbios aperezbios merged commit dd8088d into main Mar 24, 2026
1 check passed
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