Commit cef0f7a0 by olly Committed by Oliver Woodman

Apply flush workaround on S5 Mini devices with Exynos chipset.

Also apply the workaround for the secure variant of OMX.SEC.avc.dec.
Note that it's not necessary to do the same for the RK decoder in
the method below, since that workaround is targeted at SDK_INT<=17
and secure decoders only came along in 18.

Issue: #603
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=112395376
parent c01d0096
...@@ -958,7 +958,10 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer ...@@ -958,7 +958,10 @@ public abstract class MediaCodecTrackRenderer extends SampleSourceTrackRenderer
*/ */
private static boolean codecNeedsFlushWorkaround(String name) { private static boolean codecNeedsFlushWorkaround(String name) {
return Util.SDK_INT < 18 return Util.SDK_INT < 18
|| (Util.SDK_INT == 18 && "OMX.SEC.avc.dec".equals(name)); || (Util.SDK_INT == 18
&& ("OMX.SEC.avc.dec".equals(name) || "OMX.SEC.avc.dec.secure".equals(name)))
|| (Util.SDK_INT == 19 && Util.MODEL.startsWith("SM-G800")
&& ("OMX.Exynos.avc.dec".equals(name) || "OMX.Exynos.avc.dec.secure".equals(name)));
} }
/** /**
......
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