diff options
-rw-r--r-- | media/java/android/media/MediaFile.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/MediaFile.java b/media/java/android/media/MediaFile.java index d21ada4..06d43a2 100644 --- a/media/java/android/media/MediaFile.java +++ b/media/java/android/media/MediaFile.java @@ -325,7 +325,7 @@ public class MediaFile { } int lastDot = fileName.lastIndexOf('.'); if (lastDot > 0) { - String extension = fileName.substring(lastDot + 1); + String extension = fileName.substring(lastDot + 1).toUpperCase(); Integer value = sFileTypeToFormatMap.get(extension); if (value != null) { return value.intValue(); |