Skip to content

Commit 321e197

Browse files
committed
fix(engine): move the extraction cache to v6 so main v5 entries are not reused
1 parent 91d1859 commit 321e197

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎packages/engine/src/services/extractionCache.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function seedPartialDir(entry: { dir: string; keyHash: string }, frameContent: s
6666

6767
describe("extractionCache constants", () => {
6868
it("exposes the v5 schema prefix", () => {
69-
expect(SCHEMA_PREFIX).toBe("hfcache-v5-");
69+
expect(SCHEMA_PREFIX).toBe("hfcache-v6-");
7070
});
7171

7272
it("exposes the frame filename prefix shared with the extractor", () => {

‎packages/engine/src/services/extractionCache.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,11 @@ export const GC_MARKER = ".hf-last-gc";
6666
* v3 -> v4: the target fps identity is the exact FFmpeg argument instead of
6767
* a JavaScript number. This invalidates entries created after rational NTSC
6868
* rates had already been rounded to a decimal.
69-
* v4 -> v5: each CFR slot samples the frame on screen at its time instead of
69+
* v4 -> v5: SDR frames are extracted with the colour matrix and tags Chrome reads.
70+
* v5 -> v6: each CFR slot samples the frame on screen at its time instead of
7071
* the last frame ffmpeg rounds into it, changing frames at most output rates.
7172
*/
72-
export const SCHEMA_PREFIX = "hfcache-v5-";
73+
export const SCHEMA_PREFIX = "hfcache-v6-";
7374

7475
/** Truncated hex chars of SHA-256 used for the entry directory name. */
7576
const KEY_HEX_CHARS = 16;

0 commit comments

Comments
 (0)