Don't use SEC VP8 decoder on Galaxy S3s.

The only Samsung devices with names starting "d2" that we're aware of
are Galaxy S3 variants, and also one Samsung Galaxy Pocket Neo d2aio
SAMSUNG-SGH-I747Z. This change speculatively includes that device too because
its name is very similar to SAMSUNG-SGH-I747 which is known to be affected.

Issue: #548
This commit is contained in:
Oliver Woodman 2015-10-12 12:28:14 +01:00
parent c4235d0e8d
commit 9b4e9723e5

View file

@ -209,8 +209,10 @@ public final class MediaCodecUtil {
return false;
}
// Work around an issue where the VP8 decoder on Samsung Galaxy S4 Mini does not render video.
if (Util.SDK_INT <= 19 && Util.DEVICE != null && Util.DEVICE.startsWith("serrano")
// Work around an issue where the VP8 decoder on Samsung Galaxy S3/S4 Mini does not render
// video.
if (Util.SDK_INT <= 19 && Util.DEVICE != null
&& (Util.DEVICE.startsWith("d2") || Util.DEVICE.startsWith("serrano"))
&& "samsung".equals(Util.MANUFACTURER) && name.equals("OMX.SEC.vp8.dec")) {
return false;
}