mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
ensure unmarshaled entities can be marshaled back (#773)
This commit is contained in:
@@ -31,12 +31,13 @@ func TestDecode(t *testing.T) {
|
||||
}
|
||||
|
||||
func FuzzDecoder(f *testing.F) {
|
||||
f.Fuzz(func(_ *testing.T, b []byte) {
|
||||
f.Fuzz(func(t *testing.T, b []byte) {
|
||||
d := &Decoder{
|
||||
BitDepth: 24,
|
||||
ChannelCount: 2,
|
||||
}
|
||||
d.Init() //nolint:errcheck
|
||||
err := d.Init()
|
||||
require.NoError(t, err)
|
||||
|
||||
d.Decode(&rtp.Packet{ //nolint:errcheck
|
||||
Header: rtp.Header{
|
||||
|
Reference in New Issue
Block a user