Skip to content

Commit

Permalink
Work around broken VP8 decoders.
Browse files Browse the repository at this point in the history
Issue: google#548

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=127821150
  • Loading branch information
andrewlewis authored and ojw28 committed Jul 28, 2016
1 parent 183c3f5 commit 9c6382c
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,19 @@ private static boolean isCodecUsableDecoder(MediaCodecInfo info, String name,
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;
}
Expand Down

0 comments on commit 9c6382c

Please sign in to comment.