mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add distinct encodings check before returning AudioCapabilities.
This commit is contained in:
parent
753257e454
commit
b1ac7685bd
1 changed files with 1 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ public final class AudioCapabilities {
|
||||||
if (supportedEncodings.length == 0) {
|
if (supportedEncodings.length == 0) {
|
||||||
return DEFAULT_AUDIO_CAPABILITIES;
|
return DEFAULT_AUDIO_CAPABILITIES;
|
||||||
} else {
|
} else {
|
||||||
|
supportedEncodings = Util.nullSafeIntegerArrayDistinct(supportedEncodings);
|
||||||
return new AudioCapabilities(supportedEncodings, /* defaultValue= */
|
return new AudioCapabilities(supportedEncodings, /* defaultValue= */
|
||||||
DEFAULT_MAX_CHANNEL_COUNT);
|
DEFAULT_MAX_CHANNEL_COUNT);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue