mirror of
https://github.com/androidx/media.git
synced 2025-05-04 14:10:40 +08:00
Work around broken AAC decoders on Galaxy S6
Issue: #3249 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=168844850
This commit is contained in:
parent
642e95beaa
commit
30a04fd14b
@ -325,7 +325,22 @@ public final class MediaCodecUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Work around https://github.com/google/ExoPlayer/issues/548
|
||||
// Work around https://github.com/google/ExoPlayer/issues/3249.
|
||||
if (Util.SDK_INT < 24
|
||||
&& ("OMX.SEC.aac.dec".equals(name) || "OMX.Exynos.AAC.Decoder".equals(name))
|
||||
&& Util.MANUFACTURER.equals("samsung")
|
||||
&& (Util.DEVICE.startsWith("zeroflte") // Galaxy S6
|
||||
|| Util.DEVICE.startsWith("zerolte") // Galaxy S6 Edge
|
||||
|| Util.DEVICE.startsWith("zenlte") // Galaxy S6 Edge+
|
||||
|| Util.DEVICE.equals("SC-05G") // Galaxy S6
|
||||
|| Util.DEVICE.equals("marinelteatt") // Galaxy S6 Active
|
||||
|| Util.DEVICE.equals("404SC") // Galaxy S6 Edge
|
||||
|| Util.DEVICE.equals("SC-04G")
|
||||
|| Util.DEVICE.equals("SCV31"))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Work around https://github.com/google/ExoPlayer/issues/548.
|
||||
// VP8 decoder on Samsung Galaxy S3/S4/S4 Mini/Tab 3/Note 2 does not render video.
|
||||
if (Util.SDK_INT <= 19
|
||||
&& "OMX.SEC.vp8.dec".equals(name) && "samsung".equals(Util.MANUFACTURER)
|
||||
|
Loading…
x
Reference in New Issue
Block a user