Files
go2rtc/pkg/h264/avc/avc_test.go
T
2023-08-14 06:49:37 +03:00

20 lines
362 B
Go

package avc
import (
"encoding/hex"
"testing"
"github.com/stretchr/testify/require"
)
func TestDecodeConfig(t *testing.T) {
s := "01640033ffe1000c67640033ac1514a02800f19001000468ee3cb0"
b, err := hex.DecodeString(s)
require.Nil(t, err)
profile, sps, pps := DecodeConfig(b)
require.NotNil(t, profile)
require.NotNil(t, sps)
require.NotNil(t, pps)
}