vcpkg/ports/mchehab-zbar/issue219.patch

14 строки
387 B
Diff

diff --git a/zbar/decoder/databar.c b/zbar/decoder/databar.c
index 8cfa848..ffb972e 100644
--- a/zbar/decoder/databar.c
+++ b/zbar/decoder/databar.c
@@ -695,7 +695,7 @@ lookup_sequence (databar_segment_t *seg,
seq[i++] = s;
}
dbprintf(2, "}");
- seq[n] = -1;
+ if (n<22) {seq[n]=-1;} /* https://github.com/mchehab/zbar/issues/219 */
return(fixed < 1);
}