Skip to content

Commit

Permalink
Fix parsing of numPps in avcC box in mp4.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Ola Hållmarker committed Mar 22, 2018
1 parent 9c01c59 commit d2efb9f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions javascript/mp4parser/mp4.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,9 +768,8 @@ function box_avcC(data, offset, len) {
}

boxContent.PPS = new Array();
var tmp2 = data.getUint8(x); x += 1;
var numPps = tmp2 & 0x1f;
for (var i = 0; i < numSps; ++i)
var numPps = data.getUint8(x); x += 1;
for (var i = 0; i < numPps; ++i)
{
var ppsSize = data.getUint16(x); x += 2;
var pps = data.getUTF8String(x, ppsSize); x += ppsSize;
Expand Down

0 comments on commit d2efb9f

Please sign in to comment.