[MPlayer-cvslog] r33531 - trunk/libmpcodecs/vf_divtc.c

reimar subversion at mplayerhq.hu
Mon May 30 23:31:32 CEST 2011


Author: reimar
Date: Mon May 30 23:31:31 2011
New Revision: 33531

Log:
Fix code incorrectly assuming "char" is signed.

Modified:
   trunk/libmpcodecs/vf_divtc.c

Modified: trunk/libmpcodecs/vf_divtc.c
==============================================================================
--- trunk/libmpcodecs/vf_divtc.c	Mon May 30 23:25:32 2011	(r33530)
+++ trunk/libmpcodecs/vf_divtc.c	Mon May 30 23:31:31 2011	(r33531)
@@ -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;
    };
@@ -384,8 +384,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;
 


More information about the MPlayer-cvslog mailing list