Skip to content

Commit

Permalink
Fixed ESDS size parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenona committed Jan 31, 2024
1 parent a8f4cd8 commit 2d39b52
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 2d39b52

Please sign in to comment.