summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_divtc.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2011-05-30 21:16:37 +0000
committerUoti Urpala <uau@mplayer2.org>2011-07-06 09:15:57 +0300
commitbe4d3d34914720c89c084a0532be178b5e0f12cb (patch)
tree4c266c35db282c1b9d126380111ca1edfcfe55c0 /libmpcodecs/vf_divtc.c
parentab1544b74d5d3f440dbcac801c3e3ebd676f9d7b (diff)
downloadmpv-be4d3d34914720c89c084a0532be178b5e0f12cb.tar.bz2
mpv-be4d3d34914720c89c084a0532be178b5e0f12cb.tar.xz
vf_dint, vf_divtc: fix code assuming "char" is signed
Use int as type, there is no reason to use char which also causes issues since it may be either signed or unsigned. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33529 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix code assuming that "char" is signed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33530 b3059339-0415-0410-9bf9-f77b7e298cf2 Fix code incorrectly assuming "char" is signed. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33531 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_divtc.c')
-rw-r--r--libmpcodecs/vf_divtc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vf_divtc.c b/libmpcodecs/vf_divtc.c
index 3a4f2169ab..e04e7c0b4e 100644
--- a/libmpcodecs/vf_divtc.c
+++ b/libmpcodecs/vf_divtc.c
@@ -42,7 +42,7 @@ struct vf_priv_s
ocount, sum[5];
double threshold;
FILE *file;
- char *bdata;
+ int8_t *bdata;
unsigned int *csdata;
int *history;
struct vf_detc_pts_buf ptsbuf;
@@ -386,8 +386,8 @@ static int analyze(struct vf_priv_s *p)
{
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;