Skip to content

Commit 31b2466

Browse files
committed
fix(opus): address codec registration review
1 parent 4d6bc9a commit 31b2466

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

opus/codec.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,12 @@ const SDPName = "opus/48000/2"
2626

2727
func init() {
2828
media.RegisterCodec(media.NewAudioCodec(media.CodecInfo{
29-
SDPName: SDPName,
30-
SampleRate: 48000,
31-
RTPClockRate: 48000,
32-
RTPIsStatic: false,
33-
Priority: 10,
34-
Disabled: true,
35-
FileExt: "opus",
29+
SDPName: SDPName,
30+
SampleRate: 48000,
31+
RTPIsStatic: false,
32+
Priority: 10,
33+
Disabled: true,
34+
FileExt: "opus",
3635
}, func(w media.PCM16Writer) media.WriteCloser[Sample] {
3736
dec, err := Decode(w, 1, logger.GetLogger())
3837
if err != nil {

opus/opus.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
//go:build cgo
16+
1517
package opus
1618

1719
import (

0 commit comments

Comments
 (0)