From 159bdce83ea831fee0bf479cde553ee6f7c9ccbe Mon Sep 17 00:00:00 2001 From: cconcolato Date: Wed, 16 May 2018 15:39:40 -0700 Subject: [PATCH] fix parsing of dec3 --- src/parsing/dec3.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing/dec3.js b/src/parsing/dec3.js index 070d58e8..1c82c5e3 100644 --- a/src/parsing/dec3.js +++ b/src/parsing/dec3.js @@ -3,7 +3,7 @@ BoxParser.createBoxCtor("dec3", function(stream) { this.data_rate = tmp_16 >> 3; this.num_ind_sub = tmp_16 & 0x7; this.ind_subs = []; - for (var i = 0; i < this.num_ind_sub; i++) { + for (var i = 0; i < this.num_ind_sub+1; i++) { var ind_sub = {}; this.ind_subs.push(ind_sub); var tmp_byte1 = stream.readUint8();