Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Unified Diff: media/base/android/java/src/org/chromium/media/MediaCodecUtil.java

Issue 2466463005: Support (E)AC3 passthrough
Patch Set: Improve CastMediaClient::IsSupportedPassthroughAudio() Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
}

Powered by Google App Engine
This is Rietveld 408576698