Mercurial > mplayer.hg
diff libmpcodecs/vf_divtc.c @ 33443:02214457c955
Fix code incorrectly assuming "char" is signed.
author | reimar |
---|---|
date | Mon, 30 May 2011 21:31:31 +0000 |
parents | 7af3e6f901fd |
children | 4506f91c0a06 |
line wrap: on
line diff
--- 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;