mirror of
https://github.com/aler9/gortsplib
synced 2025-10-16 20:20:40 +08:00
improve fuzz tests (#592)
This commit is contained in:
@@ -44,6 +44,10 @@ func TestLPCMDecEncoder(t *testing.T) {
|
||||
|
||||
func FuzzUnmarshalLPCM(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, a string) {
|
||||
Unmarshal("audio", 96, "L16/"+a, nil) //nolint:errcheck
|
||||
fo, err := Unmarshal("audio", 96, "L16/"+a, nil)
|
||||
if err == nil {
|
||||
fo.RTPMap()
|
||||
fo.FMTP()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user