Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
33442:ed7f2a6b58e6 | 33443:02214457c955 |
---|---|
40 { | 40 { |
41 int deghost, pass, phase, window, fcount, bcount, frameno, misscount, | 41 int deghost, pass, phase, window, fcount, bcount, frameno, misscount, |
42 ocount, sum[5]; | 42 ocount, sum[5]; |
43 double threshold; | 43 double threshold; |
44 FILE *file; | 44 FILE *file; |
45 char *bdata; | 45 int8_t *bdata; |
46 unsigned int *csdata; | 46 unsigned int *csdata; |
47 int *history; | 47 int *history; |
48 }; | 48 }; |
49 | 49 |
50 /* | 50 /* |
382 | 382 |
383 static int analyze(struct vf_priv_s *p) | 383 static int analyze(struct vf_priv_s *p) |
384 { | 384 { |
385 int *buf=0, *bp, bufsize=0, n, b, f, i, j, m, s; | 385 int *buf=0, *bp, bufsize=0, n, b, f, i, j, m, s; |
386 unsigned int *cbuf=0, *cp; | 386 unsigned int *cbuf=0, *cp; |
387 char *pbuf; | 387 int8_t *pbuf; |
388 char lbuf[256]; | 388 int8_t lbuf[256]; |
389 int sum[5]; | 389 int sum[5]; |
390 double d; | 390 double d; |
391 | 391 |
392 /* read the file */ | 392 /* read the file */ |
393 | 393 |