Skip to content

🎥 Make videos programmatically with React

`remotion`: Handle animated AVIF in Firefox better

Jonny Burger0c6e9bafa85a
diff --git a/packages/core/src/animated-image/decode-image.ts b/packages/core/src/animated-image/decode-image.ts
index 0f329a35e9..79059120ce 100644
--- a/packages/core/src/animated-image/decode-image.ts
+++ b/packages/core/src/animated-image/decode-image.ts
@@ -145,7 +145,8 @@ export const decodeImage = async ({
}
if (!f.frame.duration) {
- throw new Error('Frame has no duration');
+ // non-animated, or AVIF in firefox
+ break;
}
if (i === selectedTrack.frameCount && durationFound === null) {