changeset 33442:ed7f2a6b58e6

Fix code assuming that "char" is signed.
author reimar
date Mon, 30 May 2011 21:25:32 +0000
parents d494a6d78677
children 02214457c955
files libmpcodecs/vf_dint.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_dint.c	Mon May 30 21:16:37 2011 +0000
+++ b/libmpcodecs/vf_dint.c	Mon May 30 21:25:32 2011 +0000
@@ -81,10 +81,10 @@
 
 static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
 {
-    char rrow0[MAXROWSIZE];
-    char rrow1[MAXROWSIZE];
-    char rrow2[MAXROWSIZE];
-    char *row0 = rrow0, *row1 = rrow1, *row2 = rrow2/*, *row3 = rrow3*/;
+    int8_t rrow0[MAXROWSIZE];
+    int8_t rrow1[MAXROWSIZE];
+    int8_t rrow2[MAXROWSIZE];
+    int8_t *row0 = rrow0, *row1 = rrow1, *row2 = rrow2/*, *row3 = rrow3*/;
     int rowsize = mpi->width;
     uint32_t nok = 0, max = vf->priv->max;
     int diff = vf->priv->diff;