@remotion/studio 4.0.394 → 4.0.395

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.
@@ -20473,7 +20473,7 @@ var getTimelineSequenceLayout = ({
20473
20473
  // src/helpers/use-max-media-duration.ts
20474
20474
  import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
20475
20475
 
20476
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/misc.js
20476
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
20477
20477
  /*!
20478
20478
  * Copyright (c) 2025-present, Vanilagy and contributors
20479
20479
  *
@@ -20737,6 +20737,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
20737
20737
  return byte1 << 16 | byte2 << 8 | byte3;
20738
20738
  }
20739
20739
  };
20740
+ var setUint24 = (view, byteOffset, value, littleEndian) => {
20741
+ value = value >>> 0;
20742
+ value = value & 16777215;
20743
+ if (littleEndian) {
20744
+ view.setUint8(byteOffset, value & 255);
20745
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20746
+ view.setUint8(byteOffset + 2, value >>> 16 & 255);
20747
+ } else {
20748
+ view.setUint8(byteOffset, value >>> 16 & 255);
20749
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20750
+ view.setUint8(byteOffset + 2, value & 255);
20751
+ }
20752
+ };
20740
20753
  var clamp = (value, min, max) => {
20741
20754
  return Math.max(min, Math.min(max, value));
20742
20755
  };
@@ -20890,7 +20903,7 @@ var isNumber = (x) => {
20890
20903
  return typeof x === "number" && !Number.isNaN(x);
20891
20904
  };
20892
20905
 
20893
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/metadata.js
20906
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
20894
20907
  /*!
20895
20908
  * Copyright (c) 2025-present, Vanilagy and contributors
20896
20909
  *
@@ -20941,7 +20954,7 @@ var DEFAULT_TRACK_DISPOSITION = {
20941
20954
  visuallyImpaired: false
20942
20955
  };
20943
20956
 
20944
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec.js
20957
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
20945
20958
  /*!
20946
20959
  * Copyright (c) 2025-present, Vanilagy and contributors
20947
20960
  *
@@ -21215,7 +21228,7 @@ var parsePcmCodec = (codec) => {
21215
21228
  return { dataType, sampleSize, littleEndian, silentValue };
21216
21229
  };
21217
21230
 
21218
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec-data.js
21231
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
21219
21232
  /*!
21220
21233
  * Copyright (c) 2025-present, Vanilagy and contributors
21221
21234
  *
@@ -21318,6 +21331,45 @@ var removeEmulationPreventionBytes = (data) => {
21318
21331
  }
21319
21332
  return new Uint8Array(result);
21320
21333
  };
21334
+ var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
21335
+ var concatNalUnitsInAnnexB = (nalUnits) => {
21336
+ const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
21337
+ const result = new Uint8Array(totalLength);
21338
+ let offset = 0;
21339
+ for (const nalUnit of nalUnits) {
21340
+ result.set(ANNEX_B_START_CODE, offset);
21341
+ offset += ANNEX_B_START_CODE.byteLength;
21342
+ result.set(nalUnit, offset);
21343
+ offset += nalUnit.byteLength;
21344
+ }
21345
+ return result;
21346
+ };
21347
+ var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
21348
+ const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
21349
+ const result = new Uint8Array(totalLength);
21350
+ let offset = 0;
21351
+ for (const nalUnit of nalUnits) {
21352
+ const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
21353
+ switch (lengthSize) {
21354
+ case 1:
21355
+ dataView.setUint8(offset, nalUnit.byteLength);
21356
+ break;
21357
+ case 2:
21358
+ dataView.setUint16(offset, nalUnit.byteLength, false);
21359
+ break;
21360
+ case 3:
21361
+ setUint24(dataView, offset, nalUnit.byteLength, false);
21362
+ break;
21363
+ case 4:
21364
+ dataView.setUint32(offset, nalUnit.byteLength, false);
21365
+ break;
21366
+ }
21367
+ offset += lengthSize;
21368
+ result.set(nalUnit, offset);
21369
+ offset += nalUnit.byteLength;
21370
+ }
21371
+ return result;
21372
+ };
21321
21373
  var extractAvcNalUnits = (packetData, decoderConfig) => {
21322
21374
  if (decoderConfig.description) {
21323
21375
  const bytes = toUint8Array(decoderConfig.description);
@@ -21328,6 +21380,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
21328
21380
  return findNalUnitsInAnnexB(packetData);
21329
21381
  }
21330
21382
  };
21383
+ var concatAvcNalUnits = (nalUnits, decoderConfig) => {
21384
+ if (decoderConfig.description) {
21385
+ const bytes = toUint8Array(decoderConfig.description);
21386
+ const lengthSizeMinusOne = bytes[4] & 3;
21387
+ const lengthSize = lengthSizeMinusOne + 1;
21388
+ return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
21389
+ } else {
21390
+ return concatNalUnitsInAnnexB(nalUnits);
21391
+ }
21392
+ };
21331
21393
  var extractNalUnitTypeForAvc = (data) => {
21332
21394
  return data[0] & 31;
21333
21395
  };
@@ -22583,7 +22645,7 @@ var readVorbisComments = (bytes, metadataTags) => {
22583
22645
  }
22584
22646
  };
22585
22647
 
22586
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/demuxer.js
22648
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
22587
22649
  /*!
22588
22650
  * Copyright (c) 2025-present, Vanilagy and contributors
22589
22651
  *
@@ -22598,7 +22660,7 @@ class Demuxer {
22598
22660
  }
22599
22661
  }
22600
22662
 
22601
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/custom-coder.js
22663
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
22602
22664
  /*!
22603
22665
  * Copyright (c) 2025-present, Vanilagy and contributors
22604
22666
  *
@@ -22609,7 +22671,7 @@ class Demuxer {
22609
22671
  var customVideoDecoders = [];
22610
22672
  var customAudioDecoders = [];
22611
22673
 
22612
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/packet.js
22674
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
22613
22675
  /*!
22614
22676
  * Copyright (c) 2025-present, Vanilagy and contributors
22615
22677
  *
@@ -22741,7 +22803,7 @@ class EncodedPacket {
22741
22803
  }
22742
22804
  }
22743
22805
 
22744
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/sample.js
22806
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
22745
22807
  /*!
22746
22808
  * Copyright (c) 2025-present, Vanilagy and contributors
22747
22809
  *
@@ -23417,7 +23479,7 @@ var getPlaneConfigs = (format) => {
23417
23479
  };
23418
23480
  var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
23419
23481
 
23420
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/media-sink.js
23482
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
23421
23483
  /*!
23422
23484
  * Copyright (c) 2025-present, Vanilagy and contributors
23423
23485
  *
@@ -24016,7 +24078,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
24016
24078
  }
24017
24079
  this.raslSkipped = true;
24018
24080
  }
24019
- this.currentPacketIndex++;
24020
24081
  if (this.customDecoder) {
24021
24082
  this.customDecoderQueueSize++;
24022
24083
  this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
@@ -24025,9 +24086,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
24025
24086
  if (!isWebKit()) {
24026
24087
  insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
24027
24088
  }
24089
+ if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
24090
+ const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
24091
+ const filteredNalUnits = nalUnits.filter((x) => {
24092
+ const type = extractNalUnitTypeForAvc(x);
24093
+ return !(type >= 20 && type <= 31);
24094
+ });
24095
+ const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
24096
+ packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
24097
+ }
24028
24098
  this.decoder.decode(packet.toEncodedVideoChunk());
24029
24099
  this.decodeAlphaData(packet);
24030
24100
  }
24101
+ this.currentPacketIndex++;
24031
24102
  }
24032
24103
  decodeAlphaData(packet) {
24033
24104
  if (!packet.sideData.alpha || this.mergerCreationFailed) {
@@ -24362,7 +24433,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
24362
24433
  }
24363
24434
  }
24364
24435
 
24365
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-track.js
24436
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
24366
24437
  /*!
24367
24438
  * Copyright (c) 2025-present, Vanilagy and contributors
24368
24439
  *
@@ -24571,7 +24642,7 @@ class InputAudioTrack extends InputTrack {
24571
24642
  }
24572
24643
  }
24573
24644
 
24574
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24645
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24575
24646
  /*!
24576
24647
  * Copyright (c) 2025-present, Vanilagy and contributors
24577
24648
  *
@@ -24589,7 +24660,7 @@ var buildIsobmffMimeType = (info) => {
24589
24660
  return string;
24590
24661
  };
24591
24662
 
24592
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24663
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24593
24664
  /*!
24594
24665
  * Copyright (c) 2025-present, Vanilagy and contributors
24595
24666
  *
@@ -24665,7 +24736,7 @@ var readDataBox = (slice) => {
24665
24736
  }
24666
24737
  };
24667
24738
 
24668
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24739
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24669
24740
  /*!
24670
24741
  * Copyright (c) 2025-present, Vanilagy and contributors
24671
24742
  *
@@ -26943,7 +27014,7 @@ var sampleTableIsEmpty = (sampleTable) => {
26943
27014
  return sampleTable.sampleSizes.length === 0;
26944
27015
  };
26945
27016
 
26946
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27017
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
26947
27018
  /*!
26948
27019
  * Copyright (c) 2025-present, Vanilagy and contributors
26949
27020
  *
@@ -27258,7 +27329,7 @@ function assertDefinedSize(size4) {
27258
27329
  }
27259
27330
  }
27260
27331
 
27261
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27332
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27262
27333
  /*!
27263
27334
  * Copyright (c) 2025-present, Vanilagy and contributors
27264
27335
  *
@@ -27276,7 +27347,7 @@ var buildMatroskaMimeType = (info) => {
27276
27347
  return string;
27277
27348
  };
27278
27349
 
27279
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27350
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27280
27351
  /*!
27281
27352
  * Copyright (c) 2025-present, Vanilagy and contributors
27282
27353
  *
@@ -29155,7 +29226,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
29155
29226
  }
29156
29227
  }
29157
29228
 
29158
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29229
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29159
29230
  /*!
29160
29231
  * Copyright (c) 2025-present, Vanilagy and contributors
29161
29232
  *
@@ -29397,7 +29468,7 @@ var decodeSynchsafe = (synchsafed) => {
29397
29468
  return unsynchsafed;
29398
29469
  };
29399
29470
 
29400
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/id3.js
29471
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
29401
29472
  /*!
29402
29473
  * Copyright (c) 2025-present, Vanilagy and contributors
29403
29474
  *
@@ -30097,7 +30168,7 @@ class Id3V2Reader {
30097
30168
  }
30098
30169
  }
30099
30170
 
30100
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30171
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30101
30172
  /*!
30102
30173
  * Copyright (c) 2025-present, Vanilagy and contributors
30103
30174
  *
@@ -30123,7 +30194,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
30123
30194
  return null;
30124
30195
  };
30125
30196
 
30126
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30197
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30127
30198
  /*!
30128
30199
  * Copyright (c) 2025-present, Vanilagy and contributors
30129
30200
  *
@@ -30388,7 +30459,7 @@ class Mp3AudioTrackBacking {
30388
30459
  }
30389
30460
  }
30390
30461
 
30391
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30462
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30392
30463
  /*!
30393
30464
  * Copyright (c) 2025-present, Vanilagy and contributors
30394
30465
  *
@@ -30459,7 +30530,7 @@ var buildOggMimeType = (info) => {
30459
30530
  return string;
30460
30531
  };
30461
30532
 
30462
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30533
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30463
30534
  /*!
30464
30535
  * Copyright (c) 2025-present, Vanilagy and contributors
30465
30536
  *
@@ -30523,7 +30594,7 @@ var findNextPageHeader = (slice, until) => {
30523
30594
  return false;
30524
30595
  };
30525
30596
 
30526
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30597
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30527
30598
  /*!
30528
30599
  * Copyright (c) 2025-present, Vanilagy and contributors
30529
30600
  *
@@ -31183,7 +31254,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
31183
31254
  return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
31184
31255
  };
31185
31256
 
31186
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31257
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31187
31258
  /*!
31188
31259
  * Copyright (c) 2025-present, Vanilagy and contributors
31189
31260
  *
@@ -31604,7 +31675,7 @@ class WaveAudioTrackBacking {
31604
31675
  }
31605
31676
  }
31606
31677
 
31607
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31678
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31608
31679
  /*!
31609
31680
  * Copyright (c) 2025-present, Vanilagy and contributors
31610
31681
  *
@@ -31665,7 +31736,7 @@ var readFrameHeader2 = (slice) => {
31665
31736
  };
31666
31737
  };
31667
31738
 
31668
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31739
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31669
31740
  /*!
31670
31741
  * Copyright (c) 2025-present, Vanilagy and contributors
31671
31742
  *
@@ -31886,7 +31957,7 @@ class AdtsAudioTrackBacking {
31886
31957
  }
31887
31958
  }
31888
31959
 
31889
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31960
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31890
31961
  /*!
31891
31962
  * Copyright (c) 2025-present, Vanilagy and contributors
31892
31963
  *
@@ -32021,7 +32092,7 @@ var calculateCrc8 = (data) => {
32021
32092
  return crc;
32022
32093
  };
32023
32094
 
32024
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32095
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32025
32096
  /*!
32026
32097
  * Copyright (c) 2025-present, Vanilagy and contributors
32027
32098
  *
@@ -32445,7 +32516,7 @@ class FlacAudioTrackBacking {
32445
32516
  }
32446
32517
  }
32447
32518
 
32448
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-format.js
32519
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
32449
32520
  /*!
32450
32521
  * Copyright (c) 2025-present, Vanilagy and contributors
32451
32522
  *
@@ -32767,7 +32838,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
32767
32838
  var FLAC = /* @__PURE__ */ new FlacInputFormat;
32768
32839
  var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
32769
32840
 
32770
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/source.js
32841
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
32771
32842
  var nodeAlias = (() => ({}));
32772
32843
  /*!
32773
32844
  * Copyright (c) 2025-present, Vanilagy and contributors
@@ -32934,7 +33005,7 @@ class UrlSource extends Source {
32934
33005
  }
32935
33006
  }
32936
33007
  if (worker.aborted) {
32937
- break;
33008
+ continue;
32938
33009
  }
32939
33010
  const { done, value } = readResult;
32940
33011
  if (done) {
@@ -32948,11 +33019,7 @@ class UrlSource extends Source {
32948
33019
  this.onread?.(worker.currentPos, worker.currentPos + value.length);
32949
33020
  this._orchestrator.supplyWorkerData(worker, value);
32950
33021
  }
32951
- if (worker.aborted) {
32952
- break;
32953
- }
32954
33022
  }
32955
- worker.running = false;
32956
33023
  }
32957
33024
  _getTotalLengthFromRangeResponse(response) {
32958
33025
  const contentRange = response.headers.get("Content-Range");
@@ -33305,7 +33372,7 @@ class ReadOrchestrator {
33305
33372
  }
33306
33373
  }
33307
33374
 
33308
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input.js
33375
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
33309
33376
  /*!
33310
33377
  * Copyright (c) 2025-present, Vanilagy and contributors
33311
33378
  *
@@ -33412,7 +33479,7 @@ class InputDisposedError extends Error {
33412
33479
  }
33413
33480
  }
33414
33481
 
33415
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/reader.js
33482
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
33416
33483
  /*!
33417
33484
  * Copyright (c) 2025-present, Vanilagy and contributors
33418
33485
  *
@@ -33630,7 +33697,7 @@ var readAscii = (slice, length) => {
33630
33697
  }
33631
33698
  return str;
33632
33699
  };
33633
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/index.js
33700
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
33634
33701
  /*!
33635
33702
  * Copyright (c) 2025-present, Vanilagy and contributors
33636
33703
  *
@@ -20492,7 +20492,7 @@ var getTimelineSequenceLayout = ({
20492
20492
  // src/helpers/use-max-media-duration.ts
20493
20493
  import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
20494
20494
 
20495
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/misc.js
20495
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
20496
20496
  /*!
20497
20497
  * Copyright (c) 2025-present, Vanilagy and contributors
20498
20498
  *
@@ -20756,6 +20756,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
20756
20756
  return byte1 << 16 | byte2 << 8 | byte3;
20757
20757
  }
20758
20758
  };
20759
+ var setUint24 = (view, byteOffset, value, littleEndian) => {
20760
+ value = value >>> 0;
20761
+ value = value & 16777215;
20762
+ if (littleEndian) {
20763
+ view.setUint8(byteOffset, value & 255);
20764
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20765
+ view.setUint8(byteOffset + 2, value >>> 16 & 255);
20766
+ } else {
20767
+ view.setUint8(byteOffset, value >>> 16 & 255);
20768
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
20769
+ view.setUint8(byteOffset + 2, value & 255);
20770
+ }
20771
+ };
20759
20772
  var clamp = (value, min, max) => {
20760
20773
  return Math.max(min, Math.min(max, value));
20761
20774
  };
@@ -20909,7 +20922,7 @@ var isNumber = (x) => {
20909
20922
  return typeof x === "number" && !Number.isNaN(x);
20910
20923
  };
20911
20924
 
20912
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/metadata.js
20925
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
20913
20926
  /*!
20914
20927
  * Copyright (c) 2025-present, Vanilagy and contributors
20915
20928
  *
@@ -20960,7 +20973,7 @@ var DEFAULT_TRACK_DISPOSITION = {
20960
20973
  visuallyImpaired: false
20961
20974
  };
20962
20975
 
20963
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec.js
20976
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
20964
20977
  /*!
20965
20978
  * Copyright (c) 2025-present, Vanilagy and contributors
20966
20979
  *
@@ -21234,7 +21247,7 @@ var parsePcmCodec = (codec) => {
21234
21247
  return { dataType, sampleSize, littleEndian, silentValue };
21235
21248
  };
21236
21249
 
21237
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec-data.js
21250
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
21238
21251
  /*!
21239
21252
  * Copyright (c) 2025-present, Vanilagy and contributors
21240
21253
  *
@@ -21337,6 +21350,45 @@ var removeEmulationPreventionBytes = (data) => {
21337
21350
  }
21338
21351
  return new Uint8Array(result);
21339
21352
  };
21353
+ var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
21354
+ var concatNalUnitsInAnnexB = (nalUnits) => {
21355
+ const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
21356
+ const result = new Uint8Array(totalLength);
21357
+ let offset = 0;
21358
+ for (const nalUnit of nalUnits) {
21359
+ result.set(ANNEX_B_START_CODE, offset);
21360
+ offset += ANNEX_B_START_CODE.byteLength;
21361
+ result.set(nalUnit, offset);
21362
+ offset += nalUnit.byteLength;
21363
+ }
21364
+ return result;
21365
+ };
21366
+ var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
21367
+ const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
21368
+ const result = new Uint8Array(totalLength);
21369
+ let offset = 0;
21370
+ for (const nalUnit of nalUnits) {
21371
+ const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
21372
+ switch (lengthSize) {
21373
+ case 1:
21374
+ dataView.setUint8(offset, nalUnit.byteLength);
21375
+ break;
21376
+ case 2:
21377
+ dataView.setUint16(offset, nalUnit.byteLength, false);
21378
+ break;
21379
+ case 3:
21380
+ setUint24(dataView, offset, nalUnit.byteLength, false);
21381
+ break;
21382
+ case 4:
21383
+ dataView.setUint32(offset, nalUnit.byteLength, false);
21384
+ break;
21385
+ }
21386
+ offset += lengthSize;
21387
+ result.set(nalUnit, offset);
21388
+ offset += nalUnit.byteLength;
21389
+ }
21390
+ return result;
21391
+ };
21340
21392
  var extractAvcNalUnits = (packetData, decoderConfig) => {
21341
21393
  if (decoderConfig.description) {
21342
21394
  const bytes = toUint8Array(decoderConfig.description);
@@ -21347,6 +21399,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
21347
21399
  return findNalUnitsInAnnexB(packetData);
21348
21400
  }
21349
21401
  };
21402
+ var concatAvcNalUnits = (nalUnits, decoderConfig) => {
21403
+ if (decoderConfig.description) {
21404
+ const bytes = toUint8Array(decoderConfig.description);
21405
+ const lengthSizeMinusOne = bytes[4] & 3;
21406
+ const lengthSize = lengthSizeMinusOne + 1;
21407
+ return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
21408
+ } else {
21409
+ return concatNalUnitsInAnnexB(nalUnits);
21410
+ }
21411
+ };
21350
21412
  var extractNalUnitTypeForAvc = (data) => {
21351
21413
  return data[0] & 31;
21352
21414
  };
@@ -22602,7 +22664,7 @@ var readVorbisComments = (bytes, metadataTags) => {
22602
22664
  }
22603
22665
  };
22604
22666
 
22605
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/demuxer.js
22667
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
22606
22668
  /*!
22607
22669
  * Copyright (c) 2025-present, Vanilagy and contributors
22608
22670
  *
@@ -22617,7 +22679,7 @@ class Demuxer {
22617
22679
  }
22618
22680
  }
22619
22681
 
22620
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/custom-coder.js
22682
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
22621
22683
  /*!
22622
22684
  * Copyright (c) 2025-present, Vanilagy and contributors
22623
22685
  *
@@ -22628,7 +22690,7 @@ class Demuxer {
22628
22690
  var customVideoDecoders = [];
22629
22691
  var customAudioDecoders = [];
22630
22692
 
22631
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/packet.js
22693
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
22632
22694
  /*!
22633
22695
  * Copyright (c) 2025-present, Vanilagy and contributors
22634
22696
  *
@@ -22760,7 +22822,7 @@ class EncodedPacket {
22760
22822
  }
22761
22823
  }
22762
22824
 
22763
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/sample.js
22825
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
22764
22826
  /*!
22765
22827
  * Copyright (c) 2025-present, Vanilagy and contributors
22766
22828
  *
@@ -23436,7 +23498,7 @@ var getPlaneConfigs = (format) => {
23436
23498
  };
23437
23499
  var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
23438
23500
 
23439
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/media-sink.js
23501
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
23440
23502
  /*!
23441
23503
  * Copyright (c) 2025-present, Vanilagy and contributors
23442
23504
  *
@@ -24035,7 +24097,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
24035
24097
  }
24036
24098
  this.raslSkipped = true;
24037
24099
  }
24038
- this.currentPacketIndex++;
24039
24100
  if (this.customDecoder) {
24040
24101
  this.customDecoderQueueSize++;
24041
24102
  this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
@@ -24044,9 +24105,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
24044
24105
  if (!isWebKit()) {
24045
24106
  insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
24046
24107
  }
24108
+ if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
24109
+ const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
24110
+ const filteredNalUnits = nalUnits.filter((x) => {
24111
+ const type = extractNalUnitTypeForAvc(x);
24112
+ return !(type >= 20 && type <= 31);
24113
+ });
24114
+ const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
24115
+ packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
24116
+ }
24047
24117
  this.decoder.decode(packet.toEncodedVideoChunk());
24048
24118
  this.decodeAlphaData(packet);
24049
24119
  }
24120
+ this.currentPacketIndex++;
24050
24121
  }
24051
24122
  decodeAlphaData(packet) {
24052
24123
  if (!packet.sideData.alpha || this.mergerCreationFailed) {
@@ -24381,7 +24452,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
24381
24452
  }
24382
24453
  }
24383
24454
 
24384
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-track.js
24455
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
24385
24456
  /*!
24386
24457
  * Copyright (c) 2025-present, Vanilagy and contributors
24387
24458
  *
@@ -24590,7 +24661,7 @@ class InputAudioTrack extends InputTrack {
24590
24661
  }
24591
24662
  }
24592
24663
 
24593
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24664
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24594
24665
  /*!
24595
24666
  * Copyright (c) 2025-present, Vanilagy and contributors
24596
24667
  *
@@ -24608,7 +24679,7 @@ var buildIsobmffMimeType = (info) => {
24608
24679
  return string;
24609
24680
  };
24610
24681
 
24611
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24682
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24612
24683
  /*!
24613
24684
  * Copyright (c) 2025-present, Vanilagy and contributors
24614
24685
  *
@@ -24684,7 +24755,7 @@ var readDataBox = (slice) => {
24684
24755
  }
24685
24756
  };
24686
24757
 
24687
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24758
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24688
24759
  /*!
24689
24760
  * Copyright (c) 2025-present, Vanilagy and contributors
24690
24761
  *
@@ -26962,7 +27033,7 @@ var sampleTableIsEmpty = (sampleTable) => {
26962
27033
  return sampleTable.sampleSizes.length === 0;
26963
27034
  };
26964
27035
 
26965
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27036
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
26966
27037
  /*!
26967
27038
  * Copyright (c) 2025-present, Vanilagy and contributors
26968
27039
  *
@@ -27277,7 +27348,7 @@ function assertDefinedSize(size4) {
27277
27348
  }
27278
27349
  }
27279
27350
 
27280
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27351
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27281
27352
  /*!
27282
27353
  * Copyright (c) 2025-present, Vanilagy and contributors
27283
27354
  *
@@ -27295,7 +27366,7 @@ var buildMatroskaMimeType = (info) => {
27295
27366
  return string;
27296
27367
  };
27297
27368
 
27298
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27369
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27299
27370
  /*!
27300
27371
  * Copyright (c) 2025-present, Vanilagy and contributors
27301
27372
  *
@@ -29174,7 +29245,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
29174
29245
  }
29175
29246
  }
29176
29247
 
29177
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29248
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29178
29249
  /*!
29179
29250
  * Copyright (c) 2025-present, Vanilagy and contributors
29180
29251
  *
@@ -29416,7 +29487,7 @@ var decodeSynchsafe = (synchsafed) => {
29416
29487
  return unsynchsafed;
29417
29488
  };
29418
29489
 
29419
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/id3.js
29490
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
29420
29491
  /*!
29421
29492
  * Copyright (c) 2025-present, Vanilagy and contributors
29422
29493
  *
@@ -30116,7 +30187,7 @@ class Id3V2Reader {
30116
30187
  }
30117
30188
  }
30118
30189
 
30119
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30190
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30120
30191
  /*!
30121
30192
  * Copyright (c) 2025-present, Vanilagy and contributors
30122
30193
  *
@@ -30142,7 +30213,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
30142
30213
  return null;
30143
30214
  };
30144
30215
 
30145
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30216
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30146
30217
  /*!
30147
30218
  * Copyright (c) 2025-present, Vanilagy and contributors
30148
30219
  *
@@ -30407,7 +30478,7 @@ class Mp3AudioTrackBacking {
30407
30478
  }
30408
30479
  }
30409
30480
 
30410
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30481
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30411
30482
  /*!
30412
30483
  * Copyright (c) 2025-present, Vanilagy and contributors
30413
30484
  *
@@ -30478,7 +30549,7 @@ var buildOggMimeType = (info) => {
30478
30549
  return string;
30479
30550
  };
30480
30551
 
30481
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30552
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30482
30553
  /*!
30483
30554
  * Copyright (c) 2025-present, Vanilagy and contributors
30484
30555
  *
@@ -30542,7 +30613,7 @@ var findNextPageHeader = (slice, until) => {
30542
30613
  return false;
30543
30614
  };
30544
30615
 
30545
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30616
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30546
30617
  /*!
30547
30618
  * Copyright (c) 2025-present, Vanilagy and contributors
30548
30619
  *
@@ -31202,7 +31273,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
31202
31273
  return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
31203
31274
  };
31204
31275
 
31205
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31276
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31206
31277
  /*!
31207
31278
  * Copyright (c) 2025-present, Vanilagy and contributors
31208
31279
  *
@@ -31623,7 +31694,7 @@ class WaveAudioTrackBacking {
31623
31694
  }
31624
31695
  }
31625
31696
 
31626
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31697
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31627
31698
  /*!
31628
31699
  * Copyright (c) 2025-present, Vanilagy and contributors
31629
31700
  *
@@ -31684,7 +31755,7 @@ var readFrameHeader2 = (slice) => {
31684
31755
  };
31685
31756
  };
31686
31757
 
31687
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31758
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31688
31759
  /*!
31689
31760
  * Copyright (c) 2025-present, Vanilagy and contributors
31690
31761
  *
@@ -31905,7 +31976,7 @@ class AdtsAudioTrackBacking {
31905
31976
  }
31906
31977
  }
31907
31978
 
31908
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31979
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
31909
31980
  /*!
31910
31981
  * Copyright (c) 2025-present, Vanilagy and contributors
31911
31982
  *
@@ -32040,7 +32111,7 @@ var calculateCrc8 = (data) => {
32040
32111
  return crc;
32041
32112
  };
32042
32113
 
32043
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32114
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32044
32115
  /*!
32045
32116
  * Copyright (c) 2025-present, Vanilagy and contributors
32046
32117
  *
@@ -32464,7 +32535,7 @@ class FlacAudioTrackBacking {
32464
32535
  }
32465
32536
  }
32466
32537
 
32467
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-format.js
32538
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
32468
32539
  /*!
32469
32540
  * Copyright (c) 2025-present, Vanilagy and contributors
32470
32541
  *
@@ -32786,7 +32857,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
32786
32857
  var FLAC = /* @__PURE__ */ new FlacInputFormat;
32787
32858
  var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
32788
32859
 
32789
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/source.js
32860
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
32790
32861
  var nodeAlias = (() => ({}));
32791
32862
  /*!
32792
32863
  * Copyright (c) 2025-present, Vanilagy and contributors
@@ -32953,7 +33024,7 @@ class UrlSource extends Source {
32953
33024
  }
32954
33025
  }
32955
33026
  if (worker.aborted) {
32956
- break;
33027
+ continue;
32957
33028
  }
32958
33029
  const { done, value } = readResult;
32959
33030
  if (done) {
@@ -32967,11 +33038,7 @@ class UrlSource extends Source {
32967
33038
  this.onread?.(worker.currentPos, worker.currentPos + value.length);
32968
33039
  this._orchestrator.supplyWorkerData(worker, value);
32969
33040
  }
32970
- if (worker.aborted) {
32971
- break;
32972
- }
32973
33041
  }
32974
- worker.running = false;
32975
33042
  }
32976
33043
  _getTotalLengthFromRangeResponse(response) {
32977
33044
  const contentRange = response.headers.get("Content-Range");
@@ -33324,7 +33391,7 @@ class ReadOrchestrator {
33324
33391
  }
33325
33392
  }
33326
33393
 
33327
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input.js
33394
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
33328
33395
  /*!
33329
33396
  * Copyright (c) 2025-present, Vanilagy and contributors
33330
33397
  *
@@ -33431,7 +33498,7 @@ class InputDisposedError extends Error {
33431
33498
  }
33432
33499
  }
33433
33500
 
33434
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/reader.js
33501
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
33435
33502
  /*!
33436
33503
  * Copyright (c) 2025-present, Vanilagy and contributors
33437
33504
  *
@@ -33649,7 +33716,7 @@ var readAscii = (slice, length) => {
33649
33716
  }
33650
33717
  return str;
33651
33718
  };
33652
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/index.js
33719
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
33653
33720
  /*!
33654
33721
  * Copyright (c) 2025-present, Vanilagy and contributors
33655
33722
  *
@@ -20772,7 +20772,7 @@ var getTimelineSequenceLayout = ({
20772
20772
  // src/helpers/use-max-media-duration.ts
20773
20773
  import { getVideoMetadata as getVideoMetadata2 } from "@remotion/media-utils";
20774
20774
 
20775
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/misc.js
20775
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/misc.js
20776
20776
  /*!
20777
20777
  * Copyright (c) 2025-present, Vanilagy and contributors
20778
20778
  *
@@ -21036,6 +21036,19 @@ var getUint24 = (view, byteOffset, littleEndian) => {
21036
21036
  return byte1 << 16 | byte2 << 8 | byte3;
21037
21037
  }
21038
21038
  };
21039
+ var setUint24 = (view, byteOffset, value, littleEndian) => {
21040
+ value = value >>> 0;
21041
+ value = value & 16777215;
21042
+ if (littleEndian) {
21043
+ view.setUint8(byteOffset, value & 255);
21044
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
21045
+ view.setUint8(byteOffset + 2, value >>> 16 & 255);
21046
+ } else {
21047
+ view.setUint8(byteOffset, value >>> 16 & 255);
21048
+ view.setUint8(byteOffset + 1, value >>> 8 & 255);
21049
+ view.setUint8(byteOffset + 2, value & 255);
21050
+ }
21051
+ };
21039
21052
  var clamp = (value, min, max) => {
21040
21053
  return Math.max(min, Math.min(max, value));
21041
21054
  };
@@ -21189,7 +21202,7 @@ var isNumber = (x) => {
21189
21202
  return typeof x === "number" && !Number.isNaN(x);
21190
21203
  };
21191
21204
 
21192
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/metadata.js
21205
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/metadata.js
21193
21206
  /*!
21194
21207
  * Copyright (c) 2025-present, Vanilagy and contributors
21195
21208
  *
@@ -21240,7 +21253,7 @@ var DEFAULT_TRACK_DISPOSITION = {
21240
21253
  visuallyImpaired: false
21241
21254
  };
21242
21255
 
21243
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec.js
21256
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec.js
21244
21257
  /*!
21245
21258
  * Copyright (c) 2025-present, Vanilagy and contributors
21246
21259
  *
@@ -21514,7 +21527,7 @@ var parsePcmCodec = (codec) => {
21514
21527
  return { dataType, sampleSize, littleEndian, silentValue };
21515
21528
  };
21516
21529
 
21517
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/codec-data.js
21530
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/codec-data.js
21518
21531
  /*!
21519
21532
  * Copyright (c) 2025-present, Vanilagy and contributors
21520
21533
  *
@@ -21617,6 +21630,45 @@ var removeEmulationPreventionBytes = (data) => {
21617
21630
  }
21618
21631
  return new Uint8Array(result);
21619
21632
  };
21633
+ var ANNEX_B_START_CODE = new Uint8Array([0, 0, 0, 1]);
21634
+ var concatNalUnitsInAnnexB = (nalUnits) => {
21635
+ const totalLength = nalUnits.reduce((a, b) => a + ANNEX_B_START_CODE.byteLength + b.byteLength, 0);
21636
+ const result = new Uint8Array(totalLength);
21637
+ let offset = 0;
21638
+ for (const nalUnit of nalUnits) {
21639
+ result.set(ANNEX_B_START_CODE, offset);
21640
+ offset += ANNEX_B_START_CODE.byteLength;
21641
+ result.set(nalUnit, offset);
21642
+ offset += nalUnit.byteLength;
21643
+ }
21644
+ return result;
21645
+ };
21646
+ var concatNalUnitsInLengthPrefixed = (nalUnits, lengthSize) => {
21647
+ const totalLength = nalUnits.reduce((a, b) => a + lengthSize + b.byteLength, 0);
21648
+ const result = new Uint8Array(totalLength);
21649
+ let offset = 0;
21650
+ for (const nalUnit of nalUnits) {
21651
+ const dataView = new DataView(result.buffer, result.byteOffset, result.byteLength);
21652
+ switch (lengthSize) {
21653
+ case 1:
21654
+ dataView.setUint8(offset, nalUnit.byteLength);
21655
+ break;
21656
+ case 2:
21657
+ dataView.setUint16(offset, nalUnit.byteLength, false);
21658
+ break;
21659
+ case 3:
21660
+ setUint24(dataView, offset, nalUnit.byteLength, false);
21661
+ break;
21662
+ case 4:
21663
+ dataView.setUint32(offset, nalUnit.byteLength, false);
21664
+ break;
21665
+ }
21666
+ offset += lengthSize;
21667
+ result.set(nalUnit, offset);
21668
+ offset += nalUnit.byteLength;
21669
+ }
21670
+ return result;
21671
+ };
21620
21672
  var extractAvcNalUnits = (packetData, decoderConfig) => {
21621
21673
  if (decoderConfig.description) {
21622
21674
  const bytes = toUint8Array(decoderConfig.description);
@@ -21627,6 +21679,16 @@ var extractAvcNalUnits = (packetData, decoderConfig) => {
21627
21679
  return findNalUnitsInAnnexB(packetData);
21628
21680
  }
21629
21681
  };
21682
+ var concatAvcNalUnits = (nalUnits, decoderConfig) => {
21683
+ if (decoderConfig.description) {
21684
+ const bytes = toUint8Array(decoderConfig.description);
21685
+ const lengthSizeMinusOne = bytes[4] & 3;
21686
+ const lengthSize = lengthSizeMinusOne + 1;
21687
+ return concatNalUnitsInLengthPrefixed(nalUnits, lengthSize);
21688
+ } else {
21689
+ return concatNalUnitsInAnnexB(nalUnits);
21690
+ }
21691
+ };
21630
21692
  var extractNalUnitTypeForAvc = (data) => {
21631
21693
  return data[0] & 31;
21632
21694
  };
@@ -22882,7 +22944,7 @@ var readVorbisComments = (bytes, metadataTags) => {
22882
22944
  }
22883
22945
  };
22884
22946
 
22885
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/demuxer.js
22947
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/demuxer.js
22886
22948
  /*!
22887
22949
  * Copyright (c) 2025-present, Vanilagy and contributors
22888
22950
  *
@@ -22897,7 +22959,7 @@ class Demuxer {
22897
22959
  }
22898
22960
  }
22899
22961
 
22900
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/custom-coder.js
22962
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/custom-coder.js
22901
22963
  /*!
22902
22964
  * Copyright (c) 2025-present, Vanilagy and contributors
22903
22965
  *
@@ -22908,7 +22970,7 @@ class Demuxer {
22908
22970
  var customVideoDecoders = [];
22909
22971
  var customAudioDecoders = [];
22910
22972
 
22911
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/packet.js
22973
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/packet.js
22912
22974
  /*!
22913
22975
  * Copyright (c) 2025-present, Vanilagy and contributors
22914
22976
  *
@@ -23040,7 +23102,7 @@ class EncodedPacket {
23040
23102
  }
23041
23103
  }
23042
23104
 
23043
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/sample.js
23105
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/sample.js
23044
23106
  /*!
23045
23107
  * Copyright (c) 2025-present, Vanilagy and contributors
23046
23108
  *
@@ -23716,7 +23778,7 @@ var getPlaneConfigs = (format) => {
23716
23778
  };
23717
23779
  var AUDIO_SAMPLE_FORMATS = new Set(["f32", "f32-planar", "s16", "s16-planar", "s32", "s32-planar", "u8", "u8-planar"]);
23718
23780
 
23719
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/media-sink.js
23781
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/media-sink.js
23720
23782
  /*!
23721
23783
  * Copyright (c) 2025-present, Vanilagy and contributors
23722
23784
  *
@@ -24315,7 +24377,6 @@ class VideoDecoderWrapper extends DecoderWrapper {
24315
24377
  }
24316
24378
  this.raslSkipped = true;
24317
24379
  }
24318
- this.currentPacketIndex++;
24319
24380
  if (this.customDecoder) {
24320
24381
  this.customDecoderQueueSize++;
24321
24382
  this.customDecoderCallSerializer.call(() => this.customDecoder.decode(packet)).then(() => this.customDecoderQueueSize--);
@@ -24324,9 +24385,19 @@ class VideoDecoderWrapper extends DecoderWrapper {
24324
24385
  if (!isWebKit()) {
24325
24386
  insertSorted(this.inputTimestamps, packet.timestamp, (x) => x);
24326
24387
  }
24388
+ if (isChromium() && this.currentPacketIndex === 0 && this.codec === "avc") {
24389
+ const nalUnits = extractAvcNalUnits(packet.data, this.decoderConfig);
24390
+ const filteredNalUnits = nalUnits.filter((x) => {
24391
+ const type = extractNalUnitTypeForAvc(x);
24392
+ return !(type >= 20 && type <= 31);
24393
+ });
24394
+ const newData = concatAvcNalUnits(filteredNalUnits, this.decoderConfig);
24395
+ packet = new EncodedPacket(newData, packet.type, packet.timestamp, packet.duration);
24396
+ }
24327
24397
  this.decoder.decode(packet.toEncodedVideoChunk());
24328
24398
  this.decodeAlphaData(packet);
24329
24399
  }
24400
+ this.currentPacketIndex++;
24330
24401
  }
24331
24402
  decodeAlphaData(packet) {
24332
24403
  if (!packet.sideData.alpha || this.mergerCreationFailed) {
@@ -24661,7 +24732,7 @@ class VideoSampleSink extends BaseMediaSampleSink {
24661
24732
  }
24662
24733
  }
24663
24734
 
24664
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-track.js
24735
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-track.js
24665
24736
  /*!
24666
24737
  * Copyright (c) 2025-present, Vanilagy and contributors
24667
24738
  *
@@ -24870,7 +24941,7 @@ class InputAudioTrack extends InputTrack {
24870
24941
  }
24871
24942
  }
24872
24943
 
24873
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24944
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-misc.js
24874
24945
  /*!
24875
24946
  * Copyright (c) 2025-present, Vanilagy and contributors
24876
24947
  *
@@ -24888,7 +24959,7 @@ var buildIsobmffMimeType = (info) => {
24888
24959
  return string;
24889
24960
  };
24890
24961
 
24891
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24962
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-reader.js
24892
24963
  /*!
24893
24964
  * Copyright (c) 2025-present, Vanilagy and contributors
24894
24965
  *
@@ -24964,7 +25035,7 @@ var readDataBox = (slice) => {
24964
25035
  }
24965
25036
  };
24966
25037
 
24967
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
25038
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/isobmff/isobmff-demuxer.js
24968
25039
  /*!
24969
25040
  * Copyright (c) 2025-present, Vanilagy and contributors
24970
25041
  *
@@ -27242,7 +27313,7 @@ var sampleTableIsEmpty = (sampleTable) => {
27242
27313
  return sampleTable.sampleSizes.length === 0;
27243
27314
  };
27244
27315
 
27245
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27316
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/ebml.js
27246
27317
  /*!
27247
27318
  * Copyright (c) 2025-present, Vanilagy and contributors
27248
27319
  *
@@ -27557,7 +27628,7 @@ function assertDefinedSize(size4) {
27557
27628
  }
27558
27629
  }
27559
27630
 
27560
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27631
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-misc.js
27561
27632
  /*!
27562
27633
  * Copyright (c) 2025-present, Vanilagy and contributors
27563
27634
  *
@@ -27575,7 +27646,7 @@ var buildMatroskaMimeType = (info) => {
27575
27646
  return string;
27576
27647
  };
27577
27648
 
27578
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27649
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/matroska/matroska-demuxer.js
27579
27650
  /*!
27580
27651
  * Copyright (c) 2025-present, Vanilagy and contributors
27581
27652
  *
@@ -29454,7 +29525,7 @@ class MatroskaAudioTrackBacking extends MatroskaTrackBacking {
29454
29525
  }
29455
29526
  }
29456
29527
 
29457
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29528
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/shared/mp3-misc.js
29458
29529
  /*!
29459
29530
  * Copyright (c) 2025-present, Vanilagy and contributors
29460
29531
  *
@@ -29696,7 +29767,7 @@ var decodeSynchsafe = (synchsafed) => {
29696
29767
  return unsynchsafed;
29697
29768
  };
29698
29769
 
29699
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/id3.js
29770
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/id3.js
29700
29771
  /*!
29701
29772
  * Copyright (c) 2025-present, Vanilagy and contributors
29702
29773
  *
@@ -30396,7 +30467,7 @@ class Id3V2Reader {
30396
30467
  }
30397
30468
  }
30398
30469
 
30399
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30470
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-reader.js
30400
30471
  /*!
30401
30472
  * Copyright (c) 2025-present, Vanilagy and contributors
30402
30473
  *
@@ -30422,7 +30493,7 @@ var readNextFrameHeader = async (reader, startPos, until) => {
30422
30493
  return null;
30423
30494
  };
30424
30495
 
30425
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30496
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/mp3/mp3-demuxer.js
30426
30497
  /*!
30427
30498
  * Copyright (c) 2025-present, Vanilagy and contributors
30428
30499
  *
@@ -30687,7 +30758,7 @@ class Mp3AudioTrackBacking {
30687
30758
  }
30688
30759
  }
30689
30760
 
30690
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30761
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-misc.js
30691
30762
  /*!
30692
30763
  * Copyright (c) 2025-present, Vanilagy and contributors
30693
30764
  *
@@ -30758,7 +30829,7 @@ var buildOggMimeType = (info) => {
30758
30829
  return string;
30759
30830
  };
30760
30831
 
30761
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30832
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-reader.js
30762
30833
  /*!
30763
30834
  * Copyright (c) 2025-present, Vanilagy and contributors
30764
30835
  *
@@ -30822,7 +30893,7 @@ var findNextPageHeader = (slice, until) => {
30822
30893
  return false;
30823
30894
  };
30824
30895
 
30825
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30896
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/ogg/ogg-demuxer.js
30826
30897
  /*!
30827
30898
  * Copyright (c) 2025-present, Vanilagy and contributors
30828
30899
  *
@@ -31482,7 +31553,7 @@ var findPreviousPacketEndPosition = (pageList, startPage, startSegmentIndex) =>
31482
31553
  return { page: previousPage, segmentIndex: previousPage.lacingValues.length - 1 };
31483
31554
  };
31484
31555
 
31485
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31556
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/wave/wave-demuxer.js
31486
31557
  /*!
31487
31558
  * Copyright (c) 2025-present, Vanilagy and contributors
31488
31559
  *
@@ -31903,7 +31974,7 @@ class WaveAudioTrackBacking {
31903
31974
  }
31904
31975
  }
31905
31976
 
31906
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31977
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-reader.js
31907
31978
  /*!
31908
31979
  * Copyright (c) 2025-present, Vanilagy and contributors
31909
31980
  *
@@ -31964,7 +32035,7 @@ var readFrameHeader2 = (slice) => {
31964
32035
  };
31965
32036
  };
31966
32037
 
31967
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
32038
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/adts/adts-demuxer.js
31968
32039
  /*!
31969
32040
  * Copyright (c) 2025-present, Vanilagy and contributors
31970
32041
  *
@@ -32185,7 +32256,7 @@ class AdtsAudioTrackBacking {
32185
32256
  }
32186
32257
  }
32187
32258
 
32188
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
32259
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-misc.js
32189
32260
  /*!
32190
32261
  * Copyright (c) 2025-present, Vanilagy and contributors
32191
32262
  *
@@ -32320,7 +32391,7 @@ var calculateCrc8 = (data) => {
32320
32391
  return crc;
32321
32392
  };
32322
32393
 
32323
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32394
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/flac/flac-demuxer.js
32324
32395
  /*!
32325
32396
  * Copyright (c) 2025-present, Vanilagy and contributors
32326
32397
  *
@@ -32744,7 +32815,7 @@ class FlacAudioTrackBacking {
32744
32815
  }
32745
32816
  }
32746
32817
 
32747
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input-format.js
32818
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input-format.js
32748
32819
  /*!
32749
32820
  * Copyright (c) 2025-present, Vanilagy and contributors
32750
32821
  *
@@ -33066,7 +33137,7 @@ var ADTS = /* @__PURE__ */ new AdtsInputFormat;
33066
33137
  var FLAC = /* @__PURE__ */ new FlacInputFormat;
33067
33138
  var ALL_FORMATS = [MP4, QTFF, MATROSKA, WEBM, WAVE, OGG, FLAC, MP3, ADTS];
33068
33139
 
33069
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/source.js
33140
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/source.js
33070
33141
  var nodeAlias = (() => ({}));
33071
33142
  /*!
33072
33143
  * Copyright (c) 2025-present, Vanilagy and contributors
@@ -33233,7 +33304,7 @@ class UrlSource extends Source {
33233
33304
  }
33234
33305
  }
33235
33306
  if (worker.aborted) {
33236
- break;
33307
+ continue;
33237
33308
  }
33238
33309
  const { done, value } = readResult;
33239
33310
  if (done) {
@@ -33247,11 +33318,7 @@ class UrlSource extends Source {
33247
33318
  this.onread?.(worker.currentPos, worker.currentPos + value.length);
33248
33319
  this._orchestrator.supplyWorkerData(worker, value);
33249
33320
  }
33250
- if (worker.aborted) {
33251
- break;
33252
- }
33253
33321
  }
33254
- worker.running = false;
33255
33322
  }
33256
33323
  _getTotalLengthFromRangeResponse(response) {
33257
33324
  const contentRange = response.headers.get("Content-Range");
@@ -33604,7 +33671,7 @@ class ReadOrchestrator {
33604
33671
  }
33605
33672
  }
33606
33673
 
33607
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/input.js
33674
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/input.js
33608
33675
  /*!
33609
33676
  * Copyright (c) 2025-present, Vanilagy and contributors
33610
33677
  *
@@ -33711,7 +33778,7 @@ class InputDisposedError extends Error {
33711
33778
  }
33712
33779
  }
33713
33780
 
33714
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/reader.js
33781
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/reader.js
33715
33782
  /*!
33716
33783
  * Copyright (c) 2025-present, Vanilagy and contributors
33717
33784
  *
@@ -33929,7 +33996,7 @@ var readAscii = (slice, length) => {
33929
33996
  }
33930
33997
  return str;
33931
33998
  };
33932
- // ../../node_modules/.bun/mediabunny@1.27.0/node_modules/mediabunny/dist/modules/src/index.js
33999
+ // ../../node_modules/.bun/mediabunny@1.27.2/node_modules/mediabunny/dist/modules/src/index.js
33933
34000
  /*!
33934
34001
  * Copyright (c) 2025-present, Vanilagy and contributors
33935
34002
  *
@@ -206,7 +206,7 @@ var renderContent = (Root) => {
206
206
  renderToDOM(/* @__PURE__ */ jsx("div", {
207
207
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
208
208
  }));
209
- import("./chunk-ate3k4rb.js").then(({ StudioInternals }) => {
209
+ import("./chunk-jzq8t233.js").then(({ StudioInternals }) => {
210
210
  window.remotion_isStudio = true;
211
211
  window.remotion_isReadOnlyStudio = true;
212
212
  window.remotion_inputProps = "{}";
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.394",
6
+ "version": "4.0.395",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -25,14 +25,14 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "semver": "7.5.3",
28
- "remotion": "4.0.394",
29
- "@remotion/player": "4.0.394",
30
- "@remotion/media-utils": "4.0.394",
31
- "@remotion/renderer": "4.0.394",
32
- "@remotion/web-renderer": "4.0.394",
33
- "@remotion/studio-shared": "4.0.394",
34
- "@remotion/zod-types": "4.0.394",
35
- "mediabunny": "1.27.0",
28
+ "remotion": "4.0.395",
29
+ "@remotion/player": "4.0.395",
30
+ "@remotion/media-utils": "4.0.395",
31
+ "@remotion/renderer": "4.0.395",
32
+ "@remotion/web-renderer": "4.0.395",
33
+ "@remotion/studio-shared": "4.0.395",
34
+ "@remotion/zod-types": "4.0.395",
35
+ "mediabunny": "1.27.2",
36
36
  "memfs": "3.4.3",
37
37
  "source-map": "0.7.3",
38
38
  "open": "^8.4.2",
@@ -42,7 +42,7 @@
42
42
  "react": "19.2.3",
43
43
  "react-dom": "19.2.3",
44
44
  "@types/semver": "^7.3.4",
45
- "@remotion/eslint-config-internal": "4.0.394",
45
+ "@remotion/eslint-config-internal": "4.0.395",
46
46
  "eslint": "9.19.0"
47
47
  },
48
48
  "publishConfig": {