merge MPEG4AudioGeneric and MPEG4AudioLATM (#430)

This commit is contained in:
Alessandro Ros
2023-09-21 16:51:31 +02:00
committed by GitHub
parent fabc0e7e69
commit 44da79f72d
37 changed files with 801 additions and 940 deletions

View 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)
}