From c0c03ada87c3acb286bdf6ad263d8f4fb045e5e9 Mon Sep 17 00:00:00 2001 From: Brad Hards Date: Mon, 11 Mar 2024 09:12:36 +1100 Subject: [PATCH] saiz: add sample_count to box structure This is useful when the `default_sample_info_size` is used and there are no entries in the `sample_info_size` array. --- src/parsing/saiz.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parsing/saiz.js b/src/parsing/saiz.js index 06a6cb50..e50d0693 100644 --- a/src/parsing/saiz.js +++ b/src/parsing/saiz.js @@ -10,6 +10,8 @@ BoxParser.createFullBoxCtor("saiz", function(stream) { for (var i = 0; i < count; i++) { this.sample_info_size[i] = stream.readUint8(); } + } else { + this.sample_count = count; } });