Broaden Samsung workaround to API level 25 + J7
Issue: #3257 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=174686747
This commit is contained in:
parent
475ea19ae7
commit
decf437f17
@ -1141,8 +1141,9 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
|
|||||||
* @return The mode specifying when the adaptation workaround should be enabled.
|
* @return The mode specifying when the adaptation workaround should be enabled.
|
||||||
*/
|
*/
|
||||||
private @AdaptationWorkaroundMode int codecAdaptationWorkaroundMode(String name) {
|
private @AdaptationWorkaroundMode int codecAdaptationWorkaroundMode(String name) {
|
||||||
if (Util.SDK_INT <= 24 && "OMX.Exynos.avc.dec.secure".equals(name)
|
if (Util.SDK_INT <= 25 && "OMX.Exynos.avc.dec.secure".equals(name)
|
||||||
&& (Util.MODEL.startsWith("SM-T585") || Util.MODEL.startsWith("SM-A520"))) {
|
&& (Util.MODEL.startsWith("SM-T585") || Util.MODEL.startsWith("SM-A510")
|
||||||
|
|| Util.MODEL.startsWith("SM-A520") || Util.MODEL.startsWith("SM-J700"))) {
|
||||||
return ADAPTATION_WORKAROUND_MODE_ALWAYS;
|
return ADAPTATION_WORKAROUND_MODE_ALWAYS;
|
||||||
} else if (Util.SDK_INT < 24
|
} else if (Util.SDK_INT < 24
|
||||||
&& ("OMX.Nvidia.h264.decode".equals(name) || "OMX.Nvidia.h264.decode.secure".equals(name))
|
&& ("OMX.Nvidia.h264.decode".equals(name) || "OMX.Nvidia.h264.decode.secure".equals(name))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user