Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions internal/silk/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package silk

import (
"math"
"sort"
"slices"

"github.com/pion/opus/internal/rangecoding"
)
Expand Down Expand Up @@ -545,9 +545,7 @@ func (d *Decoder) normalizeLSFStabilization(nlsfQ15 []int16, dLPC int, bandwidth
// fallback procedure executes once. First, the values of NLSF_Q15[k]
// for 0 <= k < d_LPC are sorted in ascending order. Then, for each
// value of k from 0 to d_LPC-1, NLSF_Q15[k] is set to
sort.Slice(nlsfQ15, func(i, j int) bool {
return nlsfQ15[i] < nlsfQ15[j]
})
slices.Sort(nlsfQ15)

// Then, for each value of k from 0 to d_LPC-1, NLSF_Q15[k] is set to
//
Expand Down
Loading