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 committed Sep 6, 2017
1 parent 5c2028c commit c16091c
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 c16091c

Please sign in to comment.