Commit 91461f5
committed
Fix DFF test builder to use IFF 2-byte alignment
The DFF test builder was incorrectly using 8-byte chunk alignment, but
the IFF (Interchange File Format) specification requires 2-byte alignment
for odd-sized chunks. This caused DFF parsing tests to fail because the
parser couldn't find the DSD audio data chunk at the expected offset.
Changes:
- Fix DITI/DIAR chunk size calculation to account for 2-byte alignment
- Replace 8-byte padding loops with 2-byte alignment checks
- Add comments explaining the IFF alignment requirement1 parent 90cd311 commit 91461f5
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4056 | 4056 | | |
4057 | 4057 | | |
4058 | 4058 | | |
4059 | | - | |
4060 | | - | |
4061 | | - | |
| 4059 | + | |
| 4060 | + | |
| 4061 | + | |
4062 | 4062 | | |
4063 | 4063 | | |
4064 | 4064 | | |
| |||
4087 | 4087 | | |
4088 | 4088 | | |
4089 | 4089 | | |
4090 | | - | |
4091 | | - | |
| 4090 | + | |
| 4091 | + | |
4092 | 4092 | | |
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
4099 | | - | |
| 4099 | + | |
| 4100 | + | |
4100 | 4101 | | |
4101 | 4102 | | |
4102 | 4103 | | |
| |||
4106 | 4107 | | |
4107 | 4108 | | |
4108 | 4109 | | |
4109 | | - | |
| 4110 | + | |
| 4111 | + | |
4110 | 4112 | | |
4111 | 4113 | | |
4112 | 4114 | | |
| |||
0 commit comments