mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
merge MPEG4AudioGeneric and MPEG4AudioLATM (#430)
This commit is contained in:
20
pkg/format/rtpmpeg4audio/encoder_test.go
Normal file
20
pkg/format/rtpmpeg4audio/encoder_test.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package rtpmpeg4audio
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestEncodeRandomInitialState(t *testing.T) {
|
||||
e := &Encoder{
|
||||
PayloadType: 96,
|
||||
SizeLength: 13,
|
||||
IndexLength: 3,
|
||||
IndexDeltaLength: 3,
|
||||
}
|
||||
err := e.Init()
|
||||
require.NoError(t, err)
|
||||
require.NotEqual(t, nil, e.SSRC)
|
||||
require.NotEqual(t, nil, e.InitialSequenceNumber)
|
||||
}
|
Reference in New Issue
Block a user