diff options
| author | MoonEyes <ducoinbenjamin@yahoo.fr> | 2026-11-28 22:52:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-28 22:52:45 +0100 |
| commit | ea90aabfc456984978abf0d7b72bfbdc617f7e2e (patch) | |
| tree | c4c6b9bb044aed5fef56619502cc1c41dbe4effe /docs | |
| parent | e4933c33d86e3dc5d0e8477f276992f05c35c346 (diff) | |
| parent | 77df8717a78f1595c77ba0ae273f14a8b2151322 (diff) | |
Merge pull request #1022 from klikso/carry/old-10040-bink-index-validate
OLD-10040: bink_index: validate frame offsets within each stored stream
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/movies.md | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/movies.md b/docs/movies.md index 02d23c18b..a72a53044 100644 --- a/docs/movies.md +++ b/docs/movies.md | |||
| @@ -90,9 +90,17 @@ The audio flag bits verified against FFmpeg's demuxer are `0x4000` (prefer 16-bi | |||
| 90 | All 229 are therefore Bink Audio DCT, stereo, 48 kHz by the header's own description. That does not prove the | 90 | All 229 are therefore Bink Audio DCT, stereo, 48 kHz by the header's own description. That does not prove the |
| 91 | decoder output format or that every track is used by the game. | 91 | decoder output format or that every track is used by the game. |
| 92 | 92 | ||
| 93 | The frame index is not read by `bink_index.py`: its length depends on the frame count, and the index is not needed | 93 | To check the frame index, run `python -I tools/bink_index.py <archive.rpf> --validate-frames`. The indexer skips |
| 94 | to inventory the stream. `rpf9_carve.py` advances by the stored size instead, which is why it can carve without | 94 | the revision-specific header and the 12 descriptor bytes per audio track, then reads one offset per frame. After |
| 95 | parsing the index. | 95 | masking the keyframe bit, each offset must follow the complete table, fall inside the stored stream and increase |
| 96 | strictly from the preceding offset. The first frame can start immediately after the table. Validation stops at the | ||
| 97 | first bad table or unsupported revision and exits with status 2 before writing a report. A successful run reports | ||
| 98 | the number of frame offsets checked. This checks frame boundaries without decoding video or audio. The default | ||
| 99 | inventory and `rpf9_carve.py` can still advance by stored stream size alone. | ||
| 100 | |||
| 101 | On 2026-11-23, all 22 RPF archives matched the 1.0.2.1 manifest by size and SHA-256. Four contained indexed | ||
| 102 | Bink 2 streams. The validator checked **683,552 frame offsets across all 797 streams** (787 revision `n`, 10 | ||
| 103 | revision `j`), with no table failures. This count covers streams the indexer found directly in the archives. | ||
| 96 | 104 | ||
| 97 | ## 3. How the streams are found | 105 | ## 3. How the streams are found |
| 98 | 106 | ||