mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
parent
a916ad6a50
commit
db88222660
1 changed files with 6 additions and 3 deletions
|
|
@ -1178,9 +1178,12 @@ public class MediaCodecVideoRenderer extends MediaCodecRenderer {
|
||||||
* <p>If true is returned then use of {@link DummySurface} is disabled.
|
* <p>If true is returned then use of {@link DummySurface} is disabled.
|
||||||
*/
|
*/
|
||||||
private static boolean codecNeedsDummySurfaceWorkaround(String name) {
|
private static boolean codecNeedsDummySurfaceWorkaround(String name) {
|
||||||
// Work around https://github.com/google/ExoPlayer/issues/4419.
|
// Work around https://github.com/google/ExoPlayer/issues/4419,
|
||||||
return ("Amazon".equals(Util.MANUFACTURER) && "AFTN".equals(Util.MODEL)) // FireTV 4K
|
// https://github.com/google/ExoPlayer/issues/4460.
|
||||||
&& "OMX.amlogic.avc.decoder.awesome".equals(name);
|
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…
Reference in a new issue