Skip to content

Commit

Permalink
Merge pull request #380 from Xenona/master
Browse files Browse the repository at this point in the history
Fixed ESDS size parsing
  • Loading branch information
DenizUgur authored Nov 2, 2024
2 parents 31693fb + 2d39b52 commit 8f4e892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/descriptor.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ var MPEG4DescriptorParser = function () {
byteRead = stream.readUint8();
hdrSize++;
while (byteRead & 0x80) {
size = (byteRead & 0x7F)<<7;
size = (size << 7) + (byteRead & 0x7F);
byteRead = stream.readUint8();
hdrSize++;
}
size += byteRead & 0x7F;
size = (size << 7) + (byteRead & 0x7F);
Log.debug("MPEG4DescriptorParser", "Found "+(descTagToName[tag] || "Descriptor "+tag)+", size "+size+" at position "+stream.getPosition());
if (descTagToName[tag]) {
desc = new classes[descTagToName[tag]](size);
Expand Down

0 comments on commit 8f4e892

Please sign in to comment.