mirror of
https://github.com/androidx/media.git
synced 2025-05-09 00:20:45 +08:00
Work around issue with Xiaomi JB devices
Issue: #3171 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=165577562
This commit is contained in:
parent
94a5e9bc3a
commit
7e9b1fc8ae
@ -288,9 +288,11 @@ public final class MediaCodecUtil {
|
|||||||
return false;
|
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)
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user