Commit 2ed55d97 by andrewlewis Committed by Oliver Woodman

Work around broken VP8 decoders.

Issue: #548

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127821150
parent 9304cb3f
...@@ -256,13 +256,19 @@ public final class MediaCodecUtil { ...@@ -256,13 +256,19 @@ public final class MediaCodecUtil {
return false; return false;
} }
// Work around an issue where the VP8 decoder on Samsung Galaxy S3/S4 Mini does not render // Work around https://github.com/google/ExoPlayer/issues/548
// video. // VP8 decoder on Samsung Galaxy S3/S4/S4 Mini/Tab 3 does not render video.
if (Util.SDK_INT <= 19 && Util.DEVICE != null 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")) { && "samsung".equals(Util.MANUFACTURER) && name.equals("OMX.SEC.vp8.dec")) {
return false; 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; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment