Skip to content

Commit

Permalink
Merge pull request #6 from Dash-Industry-Forum/parse-numPps-correct-i…
Browse files Browse the repository at this point in the history
…n-mp4-js

Fix parsing of numPps in avcC box in mp4.js
  • Loading branch information
tobbee authored Mar 23, 2018
2 parents 9c01c59 + d2efb9f commit 5a592a0
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 5a592a0

Please sign in to comment.