mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Merge pull request #1057 from emakar/dev
blacklisted broken mp3 decoder on api lower than 20
This commit is contained in:
commit
cbb2cfbf81
@ -186,7 +186,8 @@ public final class MediaCodecUtil {
|
|||||||
// Work around broken audio decoders.
|
// Work around broken audio decoders.
|
||||||
if ((Util.SDK_INT < 18 && "CIPAACDecoder".equals(name))
|
if ((Util.SDK_INT < 18 && "CIPAACDecoder".equals(name))
|
||||||
|| (Util.SDK_INT < 18 && "CIPMP3Decoder".equals(name))
|
|| (Util.SDK_INT < 18 && "CIPMP3Decoder".equals(name))
|
||||||
|| (Util.SDK_INT < 20 && "AACDecoder".equals(name))) {
|
|| (Util.SDK_INT < 20 && "AACDecoder".equals(name))
|
||||||
|
|| (Util.SDK_INT < 20 && "MP3Decoder".equals(name))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user