openbsd-ports/graphics/luvcview/patches/patch-gui_c
mglocker c0c74e85b5 Fix core dump when using a image resolutions > 640x480. Upstream is
informed and confirmed the bug.  As soon a new version is available which
includes the fix we will remove the patch and update the port.

OK robert@
2008-08-25 08:52:56 +00:00

13 lines
373 B
Plaintext

--- gui.c.orig Tue Feb 7 19:16:39 2006
+++ gui.c Mon Aug 4 12:42:28 2008
@@ -69,7 +69,8 @@ static int resize(unsigned char *INbuff, unsigned char
Cc = 0;
if (lastCc == Cc) {
/* no Chroma interleave correct by moving the index */
- rx -= 1;
+ if (rx != 0)
+ rx -= 1;
Cc = !Cc;
}
memcpy(output++, &input[ADDRESSE((int) rx, (int) y, Owidth)],