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

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