mchehab / zbar

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.
https://linuxtv.org/downloads/zbar/
GNU Lesser General Public License v2.1
1k stars 206 forks source link

Crash fixing while using camera #199

Closed ssrlive closed 2 years ago

ssrlive commented 3 years ago

Pointer win perhaps is NULL.

One more important thing. you messed up this line: https://github.com/mchehab/zbar/blob/5b3c33d5c87f58633b550d592f6eb8e4fd580b1e/zbar/convert.c#L1146 the vdo->format must be vdo->formats. and my commit have fixed it.

jameshilliard commented 3 years ago

There's a bunch of style changes that make this difficult to review, can you separate out the fix from those?