Be more graceful with unsupported edit lists

This commit is contained in:
Vanilagy
2025-07-10 17:33:10 +02:00
parent 3621c59034
commit fba463f46b
3 changed files with 8 additions and 4 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mediabunny",
"version": "1.0.4",
"version": "1.0.5",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mediabunny",
"version": "1.0.4",
"version": "1.0.5",
"license": "MPL-2.0",
"dependencies": {
"@types/dom-mediacapture-transform": "^0.1.11",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "mediabunny",
"author": "Vanilagy",
"version": "1.0.4",
"version": "1.0.5",
"description": "Pure TypeScript media toolkit for reading, writing, and converting media files, directly in the browser.",
"type": "module",
"main": "./dist/bundles/mediabunny.cjs",
+5 -1
View File
@@ -701,7 +701,11 @@ export class IsobmffDemuxer extends Demuxer {
}
if (relevantEntryFound) {
throw new Error('Unsupported edit list: multiple edits are not supported.');
console.warn(
'Unsupported edit list: multiple edits are not currently supported. Only using first edit.',
);
break;
}
if (mediaTime === -1) {