fixed crash when opening large MP4 with metadata-extractor

This commit is contained in:
Thibault Deckers 2021-04-27 09:32:02 +09:00
parent 2be011e66a
commit bec145b0ae

View file

@ -114,6 +114,7 @@ object Metadata {
private fun getSafeUri(context: Context, uri: Uri, mimeType: String, sizeBytes: Long?): Uri {
return when (mimeType) {
// formats known to yield OOM for large files
MimeTypes.MP4,
MimeTypes.PSD_VND,
MimeTypes.PSD_X,
MimeTypes.TIFF -> {