simplify format.Unmarshal; improve tests (#631)

This commit is contained in:
Alessandro Ros
2024-10-09 16:21:01 +02:00
committed by GitHub
parent 605f3e4972
commit 1ca217ae3a
117 changed files with 594 additions and 1242 deletions

View File

@@ -18,15 +18,3 @@ func TestVorbisAttributes(t *testing.T) {
require.Equal(t, 48000, format.ClockRate())
require.Equal(t, true, format.PTSEqualsDTS(&rtp.Packet{}))
}
func FuzzUnmarshalVorbis(f *testing.F) {
f.Fuzz(func(_ *testing.T, a, b string) {
fo, err := Unmarshal("audio", 96, "Vorbis/"+a, map[string]string{
"configuration": b,
})
if err == nil {
fo.RTPMap()
fo.FMTP()
}
})
}