From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "magic" |
|---|
| subject | "Format:CD-ROM raw sector layouts" |
|---|
| claim | "A raw data sector begins with the 12-byte sync pattern 00, ten FF bytes, 00; libchdr defines it as s_cd_sync_header and writes it back when rebuilding a CHD frame whose ECC bit is set. Audio sectors have no sync." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "raw CD-ROM data sectors (Mode 1 and Mode 2)" |
|---|
| observed_in | |
|---|
|
|---|
| data | | bytes | "00 FF FF FF FF FF FF FF FF FF FF 00" |
|---|
| offset | "0x0" |
|---|
| meaning | "CD-ROM sector sync" |
|---|
| relative_to | "start of the 2352-byte sector" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "s_cd_sync_header, SYNC_OFFSET 0, SYNC_NUM_BYTES 12" |
|---|
| repo | "https://github.com/rtissera/libchdr" |
|---|
| commit | "47d794151b2b64f6aba60304e6480f4f5a2bc24b" |
|---|
| path | "src/libchdr_cdrom.c" |
|---|
| lines | "78-100" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "CD data sector sync pattern" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T11:59:52.396Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T13:17:58.797Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read libchdr_cdrom.c at 47d7941: s_cd_sync_header[12] = 00 ff*10 00 (line 100), written back in cd_codec_decompress for frames whose ECC bit is set; cdrom.h constants." |
|---|
|
|
|---|