Commit Graph

2 Commits

Author SHA1 Message Date
09cfe2e854 rpf9_names: skip Bink 2 videos whole and keep inflation inside the --limit window
scan_archive() stepped three bytes past a KB2 signature and went on looking
for zlib headers inside the video body, so a stream embedded in a video was
reported with its names and the video's bytes were counted as zero padding or
unread. It now applies rpf9_carve.py's header test (length at +4, width and
height at +0x14) and skips a plausible video whole, counted in the new
bink2_files and bink2_bytes summary keys.

The inflate loop was bounded by the file size, not by the scan window, so a
stream crossing the end of a --limit window was still reported with a stored
size larger than the span. It is bounded by the window now, as in
rpf9_carve.py.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-22 13:04:28 +07:00
5b8dd6854b Tools: index named RPF9 resources without the TOC 2026-11-21 23:11:56 +00:00