mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
simplify format.Unmarshal; improve tests (#631)
This commit is contained in:
@@ -41,13 +41,3 @@ func TestLPCMDecEncoder(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
require.Equal(t, []byte{0x01, 0x02, 0x03, 0x04}, byts)
|
||||
}
|
||||
|
||||
func FuzzUnmarshalLPCM(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, a string) {
|
||||
fo, err := Unmarshal("audio", 96, "L16/"+a, nil)
|
||||
if err == nil {
|
||||
fo.RTPMap()
|
||||
fo.FMTP()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user