ZBar is an open source software suite for reading bar codes from various sources, including webcams. As its development stopped in 2012, I took the task of keeping it updated with the V4L2 API. This is the main repository for it. There's a clone at at LinuxTV.org, and another one at gitlab.
Pointer
win
perhaps isNULL
.One more important thing. you messed up this line: https://github.com/mchehab/zbar/blob/5b3c33d5c87f58633b550d592f6eb8e4fd580b1e/zbar/convert.c#L1146 the
vdo->format
must bevdo->formats
. and my commit have fixed it.