diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-11-05 16:00:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-05 16:00:30 +0000 |
commit | b0b00c9c7ad458211133ca16a3532efc836e87e6 (patch) | |
tree | 29c817e40e406719ac3d69629a103ad241132153 /src | |
parent | a78179aab312b69a60d01054431af166158638c7 (diff) | |
download | voidsky-b0b00c9c7ad458211133ca16a3532efc836e87e6.tar.zst |
use megabytes rather than mebibytes for video limit (#6117)
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/media/video/compress.web.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/media/video/compress.web.ts b/src/lib/media/video/compress.web.ts index ef868792a..c64a147c5 100644 --- a/src/lib/media/video/compress.web.ts +++ b/src/lib/media/video/compress.web.ts @@ -3,7 +3,7 @@ import {ImagePickerAsset} from 'expo-image-picker' import {VideoTooLargeError} from '#/lib/media/video/errors' import {CompressedVideo} from './types' -const MAX_VIDEO_SIZE = 1024 * 1024 * 50 // 50mb +const MAX_VIDEO_SIZE = 1000 * 1000 * 50 // 50mb // doesn't actually compress, converts to ArrayBuffer export async function compressVideo( |