changeset 14794:a9f383892015

100l to me: bugfix for negative stride
author rfelker
date Thu, 24 Feb 2005 17:05:34 +0000
parents 44fbb21a4eba
children 041a13490497
files libmpcodecs/vf_halfpack.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_halfpack.c	Thu Feb 24 17:04:04 2005 +0000
+++ b/libmpcodecs/vf_halfpack.c	Thu Feb 24 17:05:34 2005 +0000
@@ -20,12 +20,12 @@
 
 #ifdef HAVE_MMX
 static void halfpack_MMX(unsigned char *dst, unsigned char *src[3],
-		     unsigned int dststride, unsigned int srcstride[3],
+		     int dststride, int srcstride[3],
 		     int w, int h)
 {
 	int j;
 	unsigned char *y1, *y2, *u, *v;
-	unsigned int dstinc, yinc, uinc, vinc;
+	int dstinc, yinc, uinc, vinc;
 
 	y1 = src[0];
 	y2 = src[0] + srcstride[0];
@@ -107,12 +107,12 @@
 
 
 static void halfpack_C(unsigned char *dst, unsigned char *src[3],
-		     unsigned int dststride, unsigned int srcstride[3],
+		     int dststride, int srcstride[3],
 		     int w, int h)
 {
 	int i, j;
 	unsigned char *y1, *y2, *u, *v;
-	unsigned int dstinc, yinc, uinc, vinc;
+	int dstinc, yinc, uinc, vinc;
 
 	y1 = src[0];
 	y2 = src[0] + srcstride[0];
@@ -140,7 +140,7 @@
 }
 
 static void (*halfpack)(unsigned char *dst, unsigned char *src[3],
-	unsigned int dststride, unsigned int srcstride[3], int w, int h);
+	int dststride, int srcstride[3], int w, int h);
 
 
 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi)