# HG changeset patch # User reimar # Date 1306791091 0 # Node ID 02214457c955664c2ab6f5c73f13a9d961a540d8 # Parent ed7f2a6b58e6f0eae5995abec548b278df313af5 Fix code incorrectly assuming "char" is signed. diff -r ed7f2a6b58e6 -r 02214457c955 libmpcodecs/vf_divtc.c --- a/libmpcodecs/vf_divtc.c Mon May 30 21:25:32 2011 +0000 +++ b/libmpcodecs/vf_divtc.c Mon May 30 21:31:31 2011 +0000 @@ -42,7 +42,7 @@ ocount, sum[5]; double threshold; FILE *file; - char *bdata; + int8_t *bdata; unsigned int *csdata; int *history; }; @@ -384,8 +384,8 @@ { int *buf=0, *bp, bufsize=0, n, b, f, i, j, m, s; unsigned int *cbuf=0, *cp; - char *pbuf; - char lbuf[256]; + int8_t *pbuf; + int8_t lbuf[256]; int sum[5]; double d;