mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
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.
|
||||
*/
|
||||
private @AdaptationWorkaroundMode int codecAdaptationWorkaroundMode(String name) {
|
||||
if (Util.SDK_INT <= 24 && "OMX.Exynos.avc.dec.secure".equals(name)
|
||||
&& (Util.MODEL.startsWith("SM-T585") || Util.MODEL.startsWith("SM-A520"))) {
|
||||
if (Util.SDK_INT <= 25 && "OMX.Exynos.avc.dec.secure".equals(name)
|
||||
&& (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;
|
||||
} else if (Util.SDK_INT < 24
|
||||
&& ("OMX.Nvidia.h264.decode".equals(name) || "OMX.Nvidia.h264.decode.secure".equals(name))
|
||||
|
Loading…
x
Reference in New Issue
Block a user