fixed crash when opening large MP4 with metadata-extractor
This commit is contained in:
parent
2be011e66a
commit
bec145b0ae
1 changed files with 1 additions and 0 deletions
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in a new issue