# HG changeset patch # User michael # Date 1237474964 0 # Node ID e67354af521e3c173dad60071c54c9e02bff47f4 # Parent 128847ca9780de2cdff4e62049d904620118441a Revert Date: Wed Mar 18 23:11:50 2009 New Revision: 28996 Log: Fix libswscale compilation on non-x86, hopefully without breaking MinGW64 again. This change was non optimal, correct would have been to revert the offending commits if no time was available to find a clean fix. diff -r 128847ca9780 -r e67354af521e libswscale/rgb2rgb_template.c --- a/libswscale/rgb2rgb_template.c Thu Mar 19 14:04:14 2009 +0000 +++ b/libswscale/rgb2rgb_template.c Thu Mar 19 15:02:44 2009 +0000 @@ -1339,12 +1339,7 @@ static inline void RENAME(rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size) { -#if HAVE_MMX - x86_reg -#else - long -#endif - idx = 15 - src_size; + x86_reg idx = 15 - src_size; const uint8_t *s = src-idx; uint8_t *d = dst-idx; #if HAVE_MMX @@ -1481,11 +1476,10 @@ long lumStride, long chromStride, long dstStride, long vertLumPerChroma) { long y; - const long chromWidth= width>>1; + const x86_reg chromWidth= width>>1; for (y=0; y>1; + const x86_reg chromWidth= width>>1; for (y=0; y>1; + const x86_reg chromWidth= width>>1; for (y=0; y>2; dst[dstStride]= ( src[0] + 3*src[srcStride])>>2; @@ -2004,11 +1996,10 @@ long lumStride, long chromStride, long srcStride) { long y; - const long chromWidth= width>>1; + const x86_reg chromWidth= width>>1; for (y=0; y>1; + const x86_reg chromWidth= width>>1; #if HAVE_MMX - x86_reg cw = chromWidth; for (y=0; y>2); const uint8_t* vp=src3+srcStride3*(y>>2); uint8_t* d=dst+dstStride*y; + x=0; #if HAVE_MMX - x86_reg x = 0; for (;x