Allow FFmpeg decoders on Android x86. Closes #630

This commit is contained in:
Cameron Gutman 2019-10-15 00:11:14 -07:00
parent 6bae33f822
commit c821c4684f

View File

@ -77,8 +77,12 @@ public class MediaCodecHelper {
blacklistedDecoderPrefixes.add("AVCDecoder");
}
// Never use ffmpeg decoders since they're software decoders
// We want to avoid ffmpeg decoders since they're software decoders,
// but on Android-x86 they might be all we have (and also relatively
// performant on a modern x86 processor).
if (!Build.BRAND.equals("Android-x86")) {
blacklistedDecoderPrefixes.add("OMX.ffmpeg");
}
// Force these decoders disabled because:
// 1) They are software decoders, so the performance is terrible