use megabytes rather than mebibytes for video limit (#6117)

This commit is contained in:
Samuel Newman
2024-11-05 16:00:30 +00:00
committed by GitHub
parent a78179aab3
commit b0b00c9c7a
+1 -1
View File
@@ -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(