summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_yadif.c
diff options
context:
space:
mode:
authorgpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-01 19:51:04 +0000
committergpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-01 19:51:04 +0000
commit864a6c9f20c308e13c82fceed0e2e278efda3a94 (patch)
treebe7f46c25aa5dd03e792d2a8196db8538d321329 /libmpcodecs/vf_yadif.c
parente1595c716bf9588f7663451f33826615378224dc (diff)
downloadmpv-864a6c9f20c308e13c82fceed0e2e278efda3a94.tar.bz2
mpv-864a6c9f20c308e13c82fceed0e2e278efda3a94.tar.xz
Compile fix for odd versions of binutils, namely the ones in Fedora.
Patch by Reimar Original thread: Date: Oct 1, 2006 4:42 PM Subject: Re: [MPlayer-dev-eng] vf_yadif.c: fix for (probably) older binutils git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20016 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/vf_yadif.c')
-rw-r--r--libmpcodecs/vf_yadif.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libmpcodecs/vf_yadif.c b/libmpcodecs/vf_yadif.c
index 43fd73cb05..522918b463 100644
--- a/libmpcodecs/vf_yadif.c
+++ b/libmpcodecs/vf_yadif.c
@@ -83,8 +83,8 @@ static void store_ref(struct vf_priv_s *p, uint8_t *src[3], int src_stride[3], i
"pmaxsw "#tmp", "#dst" \n\t"
#define CHECK(pj,mj) \
- "movq "#pj"-1(%[cur],%[mrefs]), %%mm2 \n\t" /* cur[x-refs-1+j] */\
- "movq "#mj"-1(%[cur],%[prefs]), %%mm3 \n\t" /* cur[x+refs-1-j] */\
+ "movq "#pj"(%[cur],%[mrefs]), %%mm2 \n\t" /* cur[x-refs-1+j] */\
+ "movq "#mj"(%[cur],%[prefs]), %%mm3 \n\t" /* cur[x+refs-1-j] */\
"movq %%mm2, %%mm4 \n\t"\
"movq %%mm2, %%mm5 \n\t"\
"pxor %%mm3, %%mm4 \n\t"\
@@ -193,13 +193,13 @@ static void filter_line_mmx2(struct vf_priv_s *p, uint8_t *dst, uint8_t *prev, u
"paddw %%mm3, %%mm0 \n\t"\
"psubw %[pw1], %%mm0 \n\t" /* spatial_score */\
\
- CHECK(-1,1)\
+ CHECK(-2,0)\
CHECK1\
- CHECK(-2,2)\
+ CHECK(-3,1)\
CHECK2\
- CHECK(1,-1)\
+ CHECK(0,-2)\
CHECK1\
- CHECK(2,-2)\
+ CHECK(1,-3)\
CHECK2\
\
/* if(p->mode<2) ... */\