mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Blacklist bad decoders
This commit is contained in:
parent
ffc925f194
commit
b64986ce82
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Reference in a new issue