Index: liba52/imdct.c =================================================================== RCS file: /cvsroot/mplayer/main/liba52/imdct.c,v retrieving revision 1.25 diff -u -r1.25 imdct.c --- liba52/imdct.c 26 Apr 2004 19:47:50 -0000 1.25 +++ liba52/imdct.c 25 Feb 2005 19:41:37 -0000 @@ -766,6 +766,8 @@ int m; int two_m; int two_m_plus_one; + static complex_t *buf2; + static two_m_plus_one_sh; /* sample_t tmp_a_i; sample_t tmp_a_r; @@ -934,6 +936,8 @@ for (m=3; m < 7; m++) { two_m = (1 << m); two_m_plus_one = two_m<<1; + buf2 = buf+128; + two_m_plus_one_sh = two_m_plus_one<<3; asm volatile( "movl %0, %%esi \n\t" ".balign 16 \n\t" @@ -959,7 +963,7 @@ "addl %2, %%esi \n\t" "cmpl %1, %%esi \n\t" " jb 1b \n\t" - :: "g" (buf), "m" (buf+128), "m" (two_m_plus_one<<3), "r" (two_m<<3), + :: "g" (buf), "m" (buf2), "m" (two_m_plus_one_sh), "r" (two_m<<3), "r" (sseW[m]) : "%esi", "%edi", "%edx" ); Index: libmpdemux/frequencies.h =================================================================== RCS file: /cvsroot/mplayer/main/libmpdemux/frequencies.h,v retrieving revision 1.1 diff -u -r1.1 frequencies.h --- libmpdemux/frequencies.h 16 Nov 2001 22:06:48 -0000 1.1 +++ libmpdemux/frequencies.h 25 Feb 2005 19:41:38 -0000 @@ -104,7 +104,7 @@ /* --------------------------------------------------------------------- */ extern struct CHANLISTS chanlists[]; -extern struct STRTAB chanlist_names[]; +extern struct CHANLISTS chanlist_names[]; extern int chantab; extern struct CHANLIST *chanlist; Index: libvo/vo_jpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libvo/vo_jpeg.c,v retrieving revision 1.25 diff -u -r1.25 vo_jpeg.c --- libvo/vo_jpeg.c 19 Jan 2005 17:10:20 -0000 1.25 +++ libvo/vo_jpeg.c 25 Feb 2005 19:41:38 -0000 @@ -316,7 +316,7 @@ /** \brief Validation function for maxfiles > 0 */ -static int int_pos(int *mf) +static int jpeg_int_pos(int *mf) { if ( *mf > 0 ) return 1; @@ -336,7 +336,7 @@ (opt_test_f)int_zero_hundred}, {"outdir", OPT_ARG_MSTRZ, &jpeg_outdir, NULL}, {"subdirs", OPT_ARG_MSTRZ, &jpeg_subdirs, NULL}, - {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, (opt_test_f)int_pos}, + {"maxfiles", OPT_ARG_INT, &jpeg_maxfiles, (opt_test_f)jpeg_int_pos}, {NULL} }; const char *info_message = NULL; Index: postproc/swscale_template.c =================================================================== RCS file: /cvsroot/mplayer/main/postproc/swscale_template.c,v retrieving revision 1.112 diff -u -r1.112 swscale_template.c --- postproc/swscale_template.c 16 Feb 2005 23:47:00 -0000 1.112 +++ postproc/swscale_template.c 25 Feb 2005 19:41:38 -0000 @@ -2044,6 +2044,7 @@ int16_t *filter, int16_t *filterPos, int filterSize) { #ifdef HAVE_MMX + int ptr; assert(filterSize % 4 == 0 && filterSize>0); if(filterSize==4) // allways true for upscaling, sometimes for down too { @@ -2139,6 +2140,7 @@ // filter-= counter*filterSize/2; filterPos-= counter/2; dst-= counter/2; + ptr = ((int) src) + filterSize; asm volatile( "pxor %%mm7, %%mm7 \n\t" "movq "MANGLE(w02)", %%mm6 \n\t" @@ -2177,7 +2179,7 @@ " jnc 1b \n\t" : "+r" (counter), "+r" (filter) - : "m" (filterPos), "m" (dst), "m"(src+filterSize), + : "m" (filterPos), "m" (dst), "m"(ptr), "m" (src), "r" ((long)filterSize*2) : "%"REG_b, "%"REG_a, "%"REG_c ); @@ -2319,6 +2321,8 @@ else { #endif + int x1 = xInc>>16; + int x2 = xInc&0xffff; //NO MMX just normal asm ... asm volatile( "xor %%"REG_a", %%"REG_a" \n\t" // i @@ -2356,7 +2360,7 @@ " jb 1b \n\t" - :: "r" (src), "m" (dst), "m" (dstWidth), "m" (xInc>>16), "m" (xInc&0xFFFF) + :: "r" (src), "m" (dst), "m" (dstWidth), "m" (x1), "m" (x2) : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" ); #ifdef HAVE_MMX2 @@ -2515,6 +2519,8 @@ else { #endif + long x1 = (long)(xInc>>16); + int x2 = xInc&0xffff; asm volatile( "xor %%"REG_a", %%"REG_a" \n\t" // i "xor %%"REG_b", %%"REG_b" \n\t" // xx @@ -2548,7 +2554,7 @@ "cmp %2, %%"REG_a" \n\t" " jb 1b \n\t" - :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" ((long)(xInc>>16)), "m" ((xInc&0xFFFF)), + :: "m" (src1), "m" (dst), "m" ((long)dstWidth), "m" (x1), "m" (x2), "r" (src2) : "%"REG_a, "%"REG_b, "%ecx", "%"REG_D, "%esi" );