mediabunny 1.50.3 → 1.50.5
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/README.md +4 -0
- package/dist/bundles/mediabunny.cjs +6 -4
- package/dist/bundles/mediabunny.min.cjs +1 -1
- package/dist/bundles/mediabunny.min.mjs +1 -1
- package/dist/bundles/mediabunny.mjs +6 -4
- package/dist/bundles/mediabunny.node.cjs +6 -4
- package/dist/modules/src/codec-data.d.ts +1 -1
- package/dist/modules/src/codec-data.d.ts.map +1 -1
- package/dist/modules/src/codec-data.js +1 -1
- package/dist/modules/src/conversion.js +1 -1
- package/dist/modules/src/flac/flac-demuxer.js +2 -2
- package/dist/modules/src/input-track.d.ts.map +1 -1
- package/dist/modules/src/input-track.js +2 -1
- package/dist/modules/src/ogg/ogg-demuxer.js +2 -2
- package/dist/modules/src/resample.js +1 -1
- package/dist/modules/src/source.d.ts.map +1 -1
- package/dist/modules/src/source.js +7 -3
- package/dist/modules/src/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/codec-data.ts +1 -1
- package/src/conversion.ts +1 -1
- package/src/flac/flac-demuxer.ts +2 -2
- package/src/input-track.ts +2 -1
- package/src/ogg/ogg-demuxer.ts +2 -2
- package/src/resample.ts +1 -1
- package/src/source.ts +7 -3
package/README.md
CHANGED
|
@@ -70,6 +70,10 @@ Mediabunny is a JavaScript library for reading, writing, and converting media (l
|
|
|
70
70
|
<a href="https://jellypod.ai/" target="_blank" rel="sponsored">
|
|
71
71
|
<img src="./docs/public/sponsors/jellypod.png" width="40" height="40" alt="Jellypod">
|
|
72
72
|
</a>
|
|
73
|
+
|
|
74
|
+
<a href="https://www.photocircleapp.com/" target="_blank" rel="sponsored">
|
|
75
|
+
<img src="./docs/public/sponsors/photocircle.png" width="40" height="40" alt="PhotoCircle">
|
|
76
|
+
</a>
|
|
73
77
|
</div>
|
|
74
78
|
|
|
75
79
|
[Sponsor Mediabunny's development](https://github.com/sponsors/Vanilagy)
|
|
@@ -17112,7 +17112,7 @@ var Mediabunny = (() => {
|
|
|
17112
17112
|
throw error;
|
|
17113
17113
|
}
|
|
17114
17114
|
}).finally(() => {
|
|
17115
|
-
if (worker.running
|
|
17115
|
+
if (worker.running) {
|
|
17116
17116
|
return;
|
|
17117
17117
|
}
|
|
17118
17118
|
if (this.queuedReads.length > 0) {
|
|
@@ -17124,13 +17124,15 @@ var Mediabunny = (() => {
|
|
|
17124
17124
|
}
|
|
17125
17125
|
}
|
|
17126
17126
|
const queuedRead = this.queuedReads[oldestIndex];
|
|
17127
|
-
this.queuedReads.splice(oldestIndex, 1);
|
|
17128
17127
|
const newWorker = this.createWorker(
|
|
17129
17128
|
queuedRead.hole.start,
|
|
17130
17129
|
queuedRead.hole.end,
|
|
17131
17130
|
queuedRead.strictTarget
|
|
17132
17131
|
);
|
|
17133
|
-
|
|
17132
|
+
if (!newWorker) {
|
|
17133
|
+
return;
|
|
17134
|
+
}
|
|
17135
|
+
this.queuedReads.splice(oldestIndex, 1);
|
|
17134
17136
|
newWorker.pendingSlices = queuedRead.pendingSlices;
|
|
17135
17137
|
this.runWorker(newWorker);
|
|
17136
17138
|
}
|
|
@@ -24089,7 +24091,7 @@ var Mediabunny = (() => {
|
|
|
24089
24091
|
return requireSync(this._backing.getCodec(), "codec", "getCodec");
|
|
24090
24092
|
}
|
|
24091
24093
|
async hasOnlyKeyPackets() {
|
|
24092
|
-
return await this._backing.getHasOnlyKeyPackets?.() ??
|
|
24094
|
+
return await this._backing.getHasOnlyKeyPackets?.() ?? await this._backing.getCodec() === "prores";
|
|
24093
24095
|
}
|
|
24094
24096
|
/** Returns the width in pixels of the track's coded samples, before any transformations or rotations. */
|
|
24095
24097
|
async getCodedWidth() {
|