Files
gortsplib/pkg/codecs/jpeg/start_of_image_test.go

13 lines
203 B
Go

package jpeg
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestStartOfImageMarshal(t *testing.T) {
buf := StartOfImage{}.Marshal(nil)
require.Equal(t, []byte{0xff, 0xd8}, buf)
}