Skip to content

Commit

Permalink
Work around issue with Xiaomi JB devices
Browse files Browse the repository at this point in the history
Issue: #3171

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165577562
  • Loading branch information
ojw28 authored and Oliver Woodman committed Sep 8, 2017
1 parent 94a5e9b commit 7e9b1fc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,11 @@ private static boolean isCodecUsableDecoder(android.media.MediaCodecInfo info, S
return false;
}

// Work around https://github.com/google/ExoPlayer/issues/1528
// Work around https://github.com/google/ExoPlayer/issues/1528 and
// https://github.com/google/ExoPlayer/issues/3171
if (Util.SDK_INT < 18 && "OMX.MTK.AUDIO.DECODER.AAC".equals(name)
&& "a70".equals(Util.DEVICE)) {
&& ("a70".equals(Util.DEVICE)
|| ("Xiaomi".equals(Util.MANUFACTURER) && Util.DEVICE.startsWith("HM")))) {
return false;
}

Expand Down

0 comments on commit 7e9b1fc

Please sign in to comment.