mirror of
https://github.com/bluenviron/mediacommon.git
synced 2025-09-26 21:01:14 +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},
|
|
}))
|
|
}
|