@remotion/media-utils 4.0.169 → 4.0.170
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.
|
@@ -32,6 +32,10 @@ const fn = (src) => {
|
|
|
32
32
|
reject(new Error(`Unable to determine video metadata for ${src}`));
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
|
+
if (!Number.isFinite(video.duration)) {
|
|
36
|
+
reject(new Error(`Unable to determine video duration for ${src} - got Infinity. Re-encoding this video may fix this issue.`));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
35
39
|
const metadata = {
|
|
36
40
|
durationInSeconds: video.duration,
|
|
37
41
|
width: video.videoWidth,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/media-utils",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.170",
|
|
4
4
|
"description": "Utility functions for audio and video",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"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.
|
|
16
|
+
"remotion": "4.0.170"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": ">=16.8.0",
|