Skip to content

Commit

Permalink
Fix typo in audio.js - see #367
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouqueau authored Oct 17, 2023
1 parent a768453 commit 325741b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ AudioSpecificConfig.prototype.parse = function(stream, audioObjectType) {
tmp = stream.readUint8();
this.extensionSamplingFrequencyIndex = tmp >> 4;
if (this.extensionSamplingFrequencyIndex === 0xF) {
his.extensionSamplingFrequencyIndex = (tmp & 0xF) << 20;
this.extensionSamplingFrequencyIndex = (tmp & 0xF) << 20;
this.extensionSamplingFrequencyIndex += stream.readUint8() << 12;
this.extensionSamplingFrequencyIndex += stream.readUint8() << 4;
tmp = stream.readUint8();
this.extensionSamplingFrequencyIndex += (tmp >> 4);
}
}
}
}

0 comments on commit 325741b

Please sign in to comment.