[MPlayer-cvslog] r22247 - trunk/libswscale/yuv2rgb_template.c
michael
subversion at mplayerhq.hu
Sat Feb 17 14:28:45 CET 2007
Author: michael
Date: Sat Feb 17 14:28:44 2007
New Revision: 22247
Modified:
trunk/libswscale/yuv2rgb_template.c
Log:
negative stride and h_size-=8 fix
Modified: trunk/libswscale/yuv2rgb_template.c
==============================================================================
--- trunk/libswscale/yuv2rgb_template.c (original)
+++ trunk/libswscale/yuv2rgb_template.c Sat Feb 17 14:28:44 2007
@@ -133,7 +133,7 @@
}
h_size= (c->dstW+7)&~7;
- if(h_size*2 > dstStride[0]) h_size-=8;
+ if(h_size*2 > FFABS(dstStride[0])) h_size-=8;
__asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
//printf("%X %X %X %X %X %X %X %X %X %X\n", (int)&c->redDither, (int)&b5Dither, (int)src[0], (int)src[1], (int)src[2], (int)dst[0],
@@ -228,7 +228,7 @@
}
h_size= (c->dstW+7)&~7;
- if(h_size*2 > dstStride[0]) h_size-=8;
+ if(h_size*2 > FFABS(dstStride[0])) h_size-=8;
__asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
//printf("%X %X %X %X %X %X %X %X %X %X\n", (int)&c->redDither, (int)&b5Dither, (int)src[0], (int)src[1], (int)src[2], (int)dst[0],
@@ -317,7 +317,7 @@
}
h_size= (c->dstW+7)&~7;
- if(h_size*3 > dstStride[0]) h_size-=8;
+ if(h_size*3 > FFABS(dstStride[0])) h_size-=8;
__asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
@@ -463,7 +463,7 @@
}
h_size= (c->dstW+7)&~7;
- if(h_size*4 > dstStride[0]) h_size-=8;
+ if(h_size*4 > FFABS(dstStride[0])) h_size-=8;
__asm__ __volatile__ ("pxor %mm4, %mm4;" /* zero mm4 */ );
More information about the MPlayer-cvslog
mailing list