Commit aa88e0b4 by kimvde Committed by Christos Tsilopoulos

Avoid OMX.qti.audio.decoder.flac on API level < 32

Before, this decoder was avoided on API levels < 30.

#minor-release
Issue:#9349
PiperOrigin-RevId: 395209684
parent b40a6b86
...@@ -580,10 +580,10 @@ public final class MediaCodecUtil { ...@@ -580,10 +580,10 @@ public final class MediaCodecUtil {
} }
} }
if (Util.SDK_INT < 30 && decoderInfos.size() > 1) { if (Util.SDK_INT < 32 && decoderInfos.size() > 1) {
String firstCodecName = decoderInfos.get(0).name; String firstCodecName = decoderInfos.get(0).name;
// Prefer anything other than OMX.qti.audio.decoder.flac on older devices. See [Internal // Prefer anything other than OMX.qti.audio.decoder.flac on older devices. See [Internal
// ref: b/147278539] and [Internal ref: b/147354613]. // ref: b/199124812].
if ("OMX.qti.audio.decoder.flac".equals(firstCodecName)) { if ("OMX.qti.audio.decoder.flac".equals(firstCodecName)) {
decoderInfos.add(decoderInfos.remove(0)); decoderInfos.add(decoderInfos.remove(0));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment