Skip to content

🎥 Make videos programmatically with React

Update convert-to-correct-videoframe.ts

Jonny Burgera294a49096e8
diff --git a/packages/webcodecs/src/convert-to-correct-videoframe.ts b/packages/webcodecs/src/convert-to-correct-videoframe.ts
index 32c912a0c2..e95a214f8c 100644
--- a/packages/webcodecs/src/convert-to-correct-videoframe.ts
+++ b/packages/webcodecs/src/convert-to-correct-videoframe.ts
@@ -13,6 +13,11 @@ export const needsToCorrectVideoFrame = ({
return true;
}
+ // copy8f9178c2-e8ab-4538-9591-f8336602e49b-3mp4 - HDR videos
+ if ((videoFrame.format as string) === 'I420P10') {
+ return true;
+ }
+
return isFirefox() && videoFrame.format === 'BGRX' && outputCodec === 'h264';
};