Index: media/base/android/java/src/org/chromium/media/MediaCodecUtil.java |
diff --git a/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java b/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java |
index 5bec0358df14a0903c9919669a491382f8a0bb73..cf9425d47c1af2ef9fb930d787a4aeb3c0b66d5a 100644 |
--- a/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java |
+++ b/media/base/android/java/src/org/chromium/media/MediaCodecUtil.java |
@@ -8,6 +8,7 @@ import android.annotation.TargetApi; |
import android.media.MediaCodec; |
import android.media.MediaCodecInfo; |
import android.media.MediaCodecList; |
+import android.media.MediaFormat; |
import android.os.Build; |
import org.chromium.base.Log; |
@@ -224,6 +225,8 @@ class MediaCodecUtil { |
String decoderName = |
getDefaultCodecName(mime, MEDIA_CODEC_DECODER, requireSoftwareCodec); |
result.mediaCodec = MediaCodec.createByCodecName(decoderName); |
+ } else if (mime == MediaFormat.MIMETYPE_AUDIO_RAW) { |
+ result.mediaCodec = MediaCodec.createByCodecName("OMX.google.raw.decoder"); |
} else { |
result.mediaCodec = MediaCodec.createDecoderByType(mime); |
} |