mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
use log.Print instead of fmt.Print in examples
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user