use log.Print instead of fmt.Print in examples

This commit is contained in:
aler9
2022-01-31 18:39:36 +01:00
parent 8251fe3556
commit 79fdb2b7b4
15 changed files with 40 additions and 39 deletions

View File

@@ -104,14 +104,14 @@ func main() {
return
}
// decode H264 NALUs from RTP packet
// decode H264 NALUs from the RTP packet
nalus, _, err := dec.Decode(&pkt)
if err != nil {
return
}
// decode raw frames from H264 NALUs
for _, nalu := range nalus {
// decode raw frames from H264 NALUs
img, err := h264dec.decode(nalu)
if err != nil {
panic(err)