mirror of
https://github.com/pion/webrtc.git
synced 2025-10-22 06:39:29 +08:00
Fix linter errors
golangci-lint upgrade to v1.56.2 added more checks Relates to pion/.goassets#201
This commit is contained in:
@@ -101,7 +101,7 @@ func main() {
|
||||
// Set a handler for when a new remote track starts, this handler saves buffers to disk as
|
||||
// an ivf file, since we could have multiple video tracks we provide a counter.
|
||||
// In your application this is where you would handle/process video
|
||||
peerConnection.OnTrack(func(track *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) {
|
||||
peerConnection.OnTrack(func(track *webrtc.TrackRemote, receiver *webrtc.RTPReceiver) { //nolint: revive
|
||||
if strings.EqualFold(track.Codec().MimeType, webrtc.MimeTypeAV1) {
|
||||
fmt.Println("Got AV1 track, saving to disk as output.ivf")
|
||||
saveToDisk(ivfFile, track)
|
||||
|
Reference in New Issue
Block a user