mirror of
https://github.com/WonderfulToolchain/psxavenc.git
synced 2025-12-20 04:39:52 +00:00
psxavenc: fix EDC not being calculated in 2336-byte sector mode
This commit is contained in:
@@ -333,14 +333,11 @@ void encode_file_str(settings_t *settings, FILE *output) {
|
||||
buffer[0x00C] = ((t/75/60)%10)|(((t/75/60)/10)<<4);
|
||||
buffer[0x00D] = (((t/75)%60)%10)|((((t/75)%60)/10)<<4);
|
||||
buffer[0x00E] = ((t%75)%10)|(((t%75)/10)<<4);
|
||||
}
|
||||
|
||||
// FIXME: EDC is not calculated in 2336-byte sector mode (shouldn't
|
||||
// matter anyway, any CD image builder will have to recalculate it
|
||||
// due to the sector's MSF changing)
|
||||
if((j%interleave) < video_sectors_per_block) {
|
||||
calculate_edc_data(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
fwrite(buffer + 2352 - sector_size, sector_size, 1, output);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user