@remotion/media-utils 4.0.282 → 4.0.285

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.
@@ -37,7 +37,7 @@ const fn = async (src, options) => {
37
37
  return metadata;
38
38
  };
39
39
  /*
40
- * @description Takes an audio src, loads it and returns data and metadata for the specified source.
40
+ * @description Takes an audio or video src, loads it and returns data and metadata for the specified source.
41
41
  * @see [Documentation](https://remotion.dev/docs/get-audio-data)
42
42
  */
43
43
  const getAudioData = (src, options) => {
@@ -80,9 +80,6 @@ const probeWaveFile = async (src) => {
80
80
  throw new Error('getPartialAudioData() requires a WAVE file, but the bytes 36-39 are not "data". ');
81
81
  }
82
82
  const dataSize = getUint32(uintArray, offset + 4);
83
- if (dataSize + offset !== size) {
84
- throw new Error(`getPartialAudioData() requires a WAVE file, but: Expected ${dataSize + offset}, got ${size}. `);
85
- }
86
83
  return {
87
84
  dataOffset: offset + 8,
88
85
  bitsPerSample,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/media-utils"
4
4
  },
5
5
  "name": "@remotion/media-utils",
6
- "version": "4.0.282",
6
+ "version": "4.0.285",
7
7
  "description": "Utilities for working with media files",
8
8
  "main": "dist/index.js",
9
9
  "sideEffects": false,
@@ -13,7 +13,7 @@
13
13
  "url": "https://github.com/remotion-dev/remotion/issues"
14
14
  },
15
15
  "dependencies": {
16
- "remotion": "4.0.282"
16
+ "remotion": "4.0.285"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "react": ">=16.8.0",
@@ -21,7 +21,7 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "eslint": "9.19.0",
24
- "@remotion/eslint-config-internal": "4.0.282"
24
+ "@remotion/eslint-config-internal": "4.0.285"
25
25
  },
26
26
  "keywords": [
27
27
  "remotion",