mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge branch 'joomcode-dev-v2' into dev-v2
This commit is contained in:
commit
3b29eeaef8
@ -1188,9 +1188,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||
* @return True if the device is known to handle {@link DummySurface} incorrectly.
|
||||
*/
|
||||
protected boolean codecNeedsDummySurfaceWorkaround(String name) {
|
||||
// Work around https://github.com/google/ExoPlayer/issues/4419.
|
||||
return ("Amazon".equals(Util.MANUFACTURER) && "AFTN".equals(Util.MODEL)) // FireTV 4K
|
||||
&& "OMX.amlogic.avc.decoder.awesome".equals(name);
|
||||
// Work around https://github.com/google/ExoPlayer/issues/4419,
|
||||
// https://github.com/google/ExoPlayer/issues/4460.
|
||||
return (("Amazon".equals(Util.MANUFACTURER) && "AFTN".equals(Util.MODEL)) // FireTV 4K
|
||||
&& "OMX.amlogic.avc.decoder.awesome".equals(name))
|
||||
|| (("asus".equals(Util.MANUFACTURER) && "ZB500KL".equals(Util.MODEL)) // Asus Zenfone Go
|
||||
&& "OMX.qcom.video.decoder.avc".equals(name));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user