Skip to content

🎥 Make videos programmatically with React

Update make-crop.tsx

Jonny Burger7c39c10fecf8
diff --git a/packages/convert/app/components/make-crop.tsx b/packages/convert/app/components/make-crop.tsx
index 8eeff1e664..c63689bd52 100644
--- a/packages/convert/app/components/make-crop.tsx
+++ b/packages/convert/app/components/make-crop.tsx
@@ -18,8 +18,8 @@ export const makeCrop = ({
: dimensions!.height - cropRect.top;
// Round down to nearest even number if codec is avc or hevc
- let left = cropRect.left;
- let top = cropRect.top;
+ let {left} = cropRect;
+ let {top} = cropRect;
if (videoCodec === 'avc' || videoCodec === 'hevc') {
width = Math.floor(width / 2) * 2;
height = Math.floor(height / 2) * 2;