cleanup examples

This commit is contained in:
aler9
2021-11-12 16:54:56 +01:00
committed by Alessandro Ros
parent 9ba761298d
commit 61674c0ccb
3 changed files with 144 additions and 108 deletions

View File

@@ -26,7 +26,7 @@ func main() {
return
}
// parse RTP packets
// parse RTP packet
var pkt rtp.Packet
err := pkt.Unmarshal(payload)
if err != nil {
@@ -80,9 +80,8 @@ func main() {
return -1
}()
if h264Track < 0 {
panic(fmt.Errorf("H264 track not found"))
panic("H264 track not found")
}
fmt.Printf("H264 track is number %d\n", h264Track+1)
// setup all tracks
for _, t := range tracks {