Blacklist bad decoders
This commit is contained in:
parent
ffc925f194
commit
b64986ce82
@ -183,6 +183,12 @@ public final class MediaCodecUtil {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Work around broken AAC decoders.
|
||||
if ((Util.SDK_INT < 18 && "CIPAACDecoder".equals(name))
|
||||
|| (Util.SDK_INT < 20 && "AACDecoder".equals(name))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Work around an issue where creating a particular MP3 decoder on some devices on platform API
|
||||
// version 16 crashes mediaserver.
|
||||
if (Util.SDK_INT == 16
|
||||
|
Loading…
x
Reference in New Issue
Block a user