examples: print decode errors (#793)

This commit is contained in:
Alessandro Ros
2025-06-08 12:18:06 +02:00
committed by GitHub
parent abdc67b09a
commit d98036a493
8 changed files with 16 additions and 8 deletions

View File

@@ -121,8 +121,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -104,8 +104,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -129,8 +129,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -112,8 +112,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -132,8 +132,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -115,8 +115,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -94,8 +94,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }

View File

@@ -94,8 +94,9 @@ func main() {
panic(err) panic(err)
} }
// wait for a frame // check for frame presence
if img == nil { if img == nil {
log.Printf("ERR: frame cannot be decoded")
return return
} }