Blacklist bad decoders

This commit is contained in:
Andrew Lewis 2015-10-29 16:28:00 +00:00 committed by Oliver Woodman
parent ffc925f194
commit b64986ce82

View File

@ -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