mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
18 lines
246 B
Go
18 lines
246 B
Go
package h264
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestIDRPresent(t *testing.T) {
|
|
require.Equal(t, true, IDRPresent([][]byte{
|
|
{0x05},
|
|
{0x07},
|
|
}))
|
|
require.Equal(t, false, IDRPresent([][]byte{
|
|
{0x01},
|
|
}))
|
|
}
|