From cb01e1219dc4ada0548895c1b9b209fd6a71452b Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Mon, 3 Feb 2025 21:08:58 +1100 Subject: [PATCH] implement cslg version 1 --- src/parsing/cslg.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parsing/cslg.js b/src/parsing/cslg.js index 584b1d06..2cec61fd 100644 --- a/src/parsing/cslg.js +++ b/src/parsing/cslg.js @@ -6,6 +6,12 @@ BoxParser.createFullBoxCtor("cslg", function(stream) { this.greatestDecodeToDisplayDelta = stream.readInt32(); /* signed */ this.compositionStartTime = stream.readInt32(); /* signed */ this.compositionEndTime = stream.readInt32(); /* signed */ + } else if (this.version === 1) { + this.compositionToDTSShift = stream.readInt64(); /* signed */ + this.leastDecodeToDisplayDelta = stream.readInt64(); /* signed */ + this.greatestDecodeToDisplayDelta = stream.readInt64(); /* signed */ + this.compositionStartTime = stream.readInt64(); /* signed */ + this.compositionEndTime = stream.readInt64(); /* signed */ } });