bump golangci-lint (#784)

This commit is contained in:
Alessandro Ros
2025-05-23 14:51:33 +02:00
committed by GitHub
parent 2694ed941f
commit b1804d77e8
72 changed files with 289 additions and 211 deletions

View File

@@ -1,3 +1,4 @@
// Package main contains an example.
package main
import (
@@ -82,16 +83,16 @@ func main() {
}
// extract Opus packets from RTP packets
opkt, err := rtpDec.Decode(pkt)
if err != nil {
log.Printf("ERR: %v", err)
opkt, err2 := rtpDec.Decode(pkt)
if err2 != nil {
log.Printf("ERR: %v", err2)
return
}
// encode Opus packets into MPEG-TS
err = mpegtsMuxer.writeOpus(opkt, pts)
if err != nil {
log.Printf("ERR: %v", err)
err2 = mpegtsMuxer.writeOpus(opkt, pts)
if err2 != nil {
log.Printf("ERR: %v", err2)
return
}