mediabunny 1.17.1 → 1.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8888,7 +8888,12 @@ ${cue.notes ?? ""}`;
8888
8888
  const startPos = this.writer.getPos();
8889
8889
  const firstByte = 255;
8890
8890
  const secondByte = 224 | data.mpegVersionId << 3 | data.layer << 1;
8891
- const lowSamplingFrequency = data.mpegVersionId & 1;
8891
+ let lowSamplingFrequency;
8892
+ if (data.mpegVersionId & 2) {
8893
+ lowSamplingFrequency = data.mpegVersionId & 1 ? 0 : 1;
8894
+ } else {
8895
+ lowSamplingFrequency = 1;
8896
+ }
8892
8897
  const padding = 0;
8893
8898
  const neededBytes = 155;
8894
8899
  let bitrateIndex = -1;