Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

header_length for sector size 2448 #1

Open
kleuter opened this issue Aug 29, 2016 · 0 comments
Open

header_length for sector size 2448 #1

kleuter opened this issue Aug 29, 2016 · 0 comments

Comments

@kleuter
Copy link
Collaborator

kleuter commented Aug 29, 2016

Hi! I believe that header_length should be 16 bytes when track sector size is 2448

here:

if (t->track_mode != AUDIO && data_output != DAT_BIN) {

          // The header length depends on the track mode
          if (t->track_mode == MODE2) {
            switch (t->sector_size) {
              case 2352: header_length = 24; break;
              case 2336: header_length = 8;  break;
              case 2448: header_length = 16;  break; // !!!
              default:   header_length = 0;  break;
            }
          }
          else {
            switch (t->sector_size) {
              case 2352: header_length = 16; break;
              default:   header_length = 0;  break;
            }
          }

          // Since we're converting to ISO/2048, the sector length is now 2048
          write_length = 2048;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant