Commit 90cd311
committed
Fix Musepack SV8 Stream Header parsing
The parser was only skipping 1 byte before reading sample count, but
per Musepack SV8 spec the Stream Header payload starts with:
- 4 bytes: CRC32
- 1 byte: Stream version
- Variable length: Sample count
- Variable length: Beginning silence
- 1 byte: Flags
Updated parser to skip 5 bytes (CRC + version) before reading the
variable-length sample count. Also fixed the local test helper to
include the 4-byte CRC placeholder for consistency with TestBuilders.1 parent c1ea975 commit 90cd311
2 files changed
Lines changed: 8 additions & 4 deletions
File tree
- src/TagLibSharp2/Musepack
- tests/TagLibSharp2.Tests/Musepack
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
288 | | - | |
289 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
290 | 292 | | |
291 | 293 | | |
292 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
749 | | - | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
750 | 752 | | |
751 | 753 | | |
752 | 754 | | |
| |||
0 commit comments