Work around broken VP8 decoders.

Issue: #548

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127821150
This commit is contained in:
andrewlewis 2016-07-19 05:27:49 -07:00 committed by Oliver Woodman
parent 9304cb3f8f
commit 2ed55d97d1

View file

@ -256,13 +256,19 @@ public final class MediaCodecUtil {
return false;
}
// Work around an issue where the VP8 decoder on Samsung Galaxy S3/S4 Mini does not render
// video.
// Work around https://github.com/google/ExoPlayer/issues/548
// VP8 decoder on Samsung Galaxy S3/S4/S4 Mini/Tab 3 does not render video.
if (Util.SDK_INT <= 19 && Util.DEVICE != null
&& (Util.DEVICE.startsWith("d2") || Util.DEVICE.startsWith("serrano"))
&& (Util.DEVICE.startsWith("d2") || Util.DEVICE.startsWith("serrano")
|| Util.DEVICE.startsWith("jflte") || Util.DEVICE.startsWith("santos"))
&& "samsung".equals(Util.MANUFACTURER) && name.equals("OMX.SEC.vp8.dec")) {
return false;
}
// VP8 decoder on Samsung Galaxy S4 cannot be queried.
if (Util.SDK_INT <= 19 && Util.DEVICE != null && Util.DEVICE.startsWith("jflte")
&& "OMX.qcom.video.decoder.vp8".equals(name)) {
return false;
}
return true;
}