mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +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) {
|
||||
return DEFAULT_AUDIO_CAPABILITIES;
|
||||
} else {
|
||||
supportedEncodings = Util.nullSafeIntegerArrayDistinct(supportedEncodings);
|
||||
return new AudioCapabilities(supportedEncodings, /* defaultValue= */
|
||||
DEFAULT_MAX_CHANNEL_COUNT);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue