@remotion/studio 4.0.381 → 4.0.383

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.
@@ -6,7 +6,7 @@ export declare const getDefaultCodecs: ({ defaultConfigurationVideoCodec, compos
6
6
  compositionDefaultVideoCodec: Codec | null;
7
7
  renderType: RenderType;
8
8
  }) => {
9
- initialAudioCodec: AudioCodec;
9
+ initialAudioCodec: AudioCodec | null;
10
10
  initialVideoCodec: Codec;
11
11
  initialRenderType: RenderType;
12
12
  initialVideoCodecForAudioTab: Codec;
@@ -20,7 +20,7 @@ const getDefaultCodecs = ({ defaultConfigurationVideoCodec, compositionDefaultVi
20
20
  const isVideoCodecAnAudioCodec = pure_1.NoReactAPIs.isAudioCodec(userPreferredVideoCodec);
21
21
  if (isVideoCodecAnAudioCodec) {
22
22
  return {
23
- initialAudioCodec: userPreferredVideoCodec,
23
+ initialAudioCodec: null,
24
24
  initialRenderType: 'audio',
25
25
  initialVideoCodec: userPreferredVideoCodec,
26
26
  initialVideoCodecForAudioTab: userPreferredVideoCodecForAudioTab,
@@ -247,6 +247,7 @@ const TimelineVideoInfo = ({ src, visualizationWidth, startFrom, durationInFrame
247
247
  segmentDuration: toSeconds - fromSeconds,
248
248
  fromSeconds,
249
249
  });
250
+ sample.close();
250
251
  },
251
252
  signal: controller.signal,
252
253
  })