changeset 14793:44fbb21a4eba

bugfix for negative stride
author rfelker
date Thu, 24 Feb 2005 17:04:04 +0000
parents 6c12ee26fab9
children a9f383892015
files libmpcodecs/vf_down3dright.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_down3dright.c	Thu Feb 24 16:52:18 2005 +0000
+++ b/libmpcodecs/vf_down3dright.c	Thu Feb 24 17:04:04 2005 +0000
@@ -21,7 +21,7 @@
 };
 
 static void toright(unsigned char *dst[3], unsigned char *src[3],
-		    unsigned int dststride[3], unsigned int srcstride[3],
+		    int dststride[3], int srcstride[3],
 		    int w, int h, struct vf_priv_s* p)
 {
 	int k;
@@ -30,9 +30,9 @@
 		unsigned char* fromL = src[k];
 		unsigned char* fromR = src[k];
 		unsigned char* to = dst[k];
-		unsigned int src = srcstride[k];
-                unsigned int dst = dststride[k];
-		unsigned int ss;
+		int src = srcstride[k];
+                int dst = dststride[k];
+		int ss;
 		unsigned int dd;
 		int i;