rtmp: support publishing G711 and LPCM tracks (#2857) (#2884)

This commit is contained in:
Alessandro Ros
2024-01-07 17:02:22 +01:00
committed by GitHub
parent bc7804cb33
commit 27975d8b67
36 changed files with 527 additions and 129 deletions

View File

@@ -156,3 +156,31 @@ func TestChunkMarshal(t *testing.T) {
})
}
}
func FuzzChunk0Read(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
var chunk Chunk0
chunk.Read(bytes.NewReader(b), 65536, false) //nolint:errcheck
})
}
func FuzzChunk1Read(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
var chunk Chunk1
chunk.Read(bytes.NewReader(b), 65536, false) //nolint:errcheck
})
}
func FuzzChunk2Read(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
var chunk Chunk2
chunk.Read(bytes.NewReader(b), 65536, false) //nolint:errcheck
})
}
func FuzzChunk3Read(f *testing.F) {
f.Fuzz(func(t *testing.T, b []byte) {
var chunk Chunk3
chunk.Read(bytes.NewReader(b), 65536, true) //nolint:errcheck
})
}