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.
- package/dist/bundles/mediabunny.cjs +6 -1
- package/dist/bundles/mediabunny.min.cjs +1 -1
- package/dist/bundles/mediabunny.min.mjs +1 -1
- package/dist/bundles/mediabunny.mjs +6 -1
- package/dist/modules/src/mp3/mp3-writer.d.ts.map +1 -1
- package/dist/modules/src/mp3/mp3-writer.js +7 -1
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/mp3/mp3-writer.ts +6 -1
|
@@ -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
|
-
|
|
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;
|