mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
enable errcheck
This commit is contained in:
@@ -1014,7 +1014,7 @@ func TestUnmarshalAV1Errors(t *testing.T) {
|
||||
|
||||
func FuzzUnmarshalH264(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, sps string, pktMode string) {
|
||||
Unmarshal("video", 96, "H264/90000", map[string]string{
|
||||
Unmarshal("video", 96, "H264/90000", map[string]string{ //nolint:errcheck
|
||||
"sprop-parameter-sets": sps,
|
||||
"packetization-mode": pktMode,
|
||||
})
|
||||
@@ -1023,7 +1023,7 @@ func FuzzUnmarshalH264(f *testing.F) {
|
||||
|
||||
func FuzzUnmarshalH265(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a, b, c, d string) {
|
||||
Unmarshal("video", 96, "H265/90000", map[string]string{
|
||||
Unmarshal("video", 96, "H265/90000", map[string]string{ //nolint:errcheck
|
||||
"sprop-vps": a,
|
||||
"sprop-sps": b,
|
||||
"sprop-pps": c,
|
||||
@@ -1034,13 +1034,13 @@ func FuzzUnmarshalH265(f *testing.F) {
|
||||
|
||||
func FuzzUnmarshalLPCM(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a string) {
|
||||
Unmarshal("audio", 96, "L16/"+a, nil)
|
||||
Unmarshal("audio", 96, "L16/"+a, nil) //nolint:errcheck
|
||||
})
|
||||
}
|
||||
|
||||
func FuzzUnmarshalMPEG4VideoES(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a, b string) {
|
||||
Unmarshal("video", 96, "MP4V-ES/90000", map[string]string{
|
||||
Unmarshal("video", 96, "MP4V-ES/90000", map[string]string{ //nolint:errcheck
|
||||
"profile-level-id": a,
|
||||
"config": b,
|
||||
})
|
||||
@@ -1051,13 +1051,13 @@ func FuzzUnmarshalOpus(f *testing.F) {
|
||||
f.Add("48000/a")
|
||||
|
||||
f.Fuzz(func(t *testing.T, a string) {
|
||||
Unmarshal("audio", 96, "Opus/"+a, nil)
|
||||
Unmarshal("audio", 96, "Opus/"+a, nil) //nolint:errcheck
|
||||
})
|
||||
}
|
||||
|
||||
func FuzzUnmarshalVorbis(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a, b string) {
|
||||
Unmarshal("audio", 96, "Vorbis/"+a, map[string]string{
|
||||
Unmarshal("audio", 96, "Vorbis/"+a, map[string]string{ //nolint:errcheck
|
||||
"configuration": b,
|
||||
})
|
||||
})
|
||||
@@ -1065,7 +1065,7 @@ func FuzzUnmarshalVorbis(f *testing.F) {
|
||||
|
||||
func FuzzUnmarshalVP8(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a, b string) {
|
||||
Unmarshal("video", 96, "VP8/90000", map[string]string{
|
||||
Unmarshal("video", 96, "VP8/90000", map[string]string{ //nolint:errcheck
|
||||
"max-fr": a,
|
||||
"max-fs": b,
|
||||
})
|
||||
@@ -1074,7 +1074,7 @@ func FuzzUnmarshalVP8(f *testing.F) {
|
||||
|
||||
func FuzzUnmarshalVP9(f *testing.F) {
|
||||
f.Fuzz(func(t *testing.T, a, b, c string) {
|
||||
Unmarshal("video", 96, "VP9/90000", map[string]string{
|
||||
Unmarshal("video", 96, "VP9/90000", map[string]string{ //nolint:errcheck
|
||||
"max-fr": a,
|
||||
"max-fs": b,
|
||||
"profile-id": c,
|
||||
|
Reference in New Issue
Block a user