mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
A52 files cut from a longer stream can start partway through a frame. The metadata parser required a sync word at offset 0 and rejected them, although the codec can resync. Scan the first 64 KB for a frame header that is followed by a second valid header, record it as first_frame_offset, and use that offset when seeking and resuming. Tested in the simulator (perfsim) and on a Sansa Clip+: a file starting with 675 bytes of a partial frame now plays. In the simulator it decodes all 3161 frames with the same output as the file without those bytes, and seeks land on frame starts. Fixes FS#9056 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Change-Id: I5d72b1cd1d8437491ec00a38459e391fb158b9a2 |
||
|---|---|---|
| .. | ||
| arm_support | ||
| fixedpoint | ||
| libsetjmp | ||
| microtar | ||
| mipsunwinder | ||
| rbcodec | ||
| skin_parser | ||
| tlsf | ||
| unwarminder | ||
| utf8proc | ||