diff options
author | J. Bohl <jbohl@h-quer.de> | 2012-06-09 01:05:08 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-09 02:34:21 +0400 |
commit | 023c07307639f8067a23f12e83058e632d230fb9 (patch) | |
tree | 76030beb0f3846acfcdd51604d16bf5ceaab7077 /libavfilter/libmpcodecs | |
parent | 690ea9359dd933f41ecdade9c0ba29934e1a9aaa (diff) |
add bracket around the argument (fixes compilation error with ICL)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/libmpcodecs')
-rw-r--r-- | libavfilter/libmpcodecs/vf_mcdeint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavfilter/libmpcodecs/vf_mcdeint.c b/libavfilter/libmpcodecs/vf_mcdeint.c index 64c402cba5..326274bf2d 100644 --- a/libavfilter/libmpcodecs/vf_mcdeint.c +++ b/libavfilter/libmpcodecs/vf_mcdeint.c @@ -125,13 +125,13 @@ static void filter(struct vf_priv_s *p, uint8_t *dst[3], uint8_t *src[3], int ds int temp= filp[0]; #define CHECK(j)\ - { int score= ABS(srcp[-srcs-1+j] - srcp[+srcs-1-j])\ - + ABS(srcp[-srcs +j] - srcp[+srcs -j])\ - + ABS(srcp[-srcs+1+j] - srcp[+srcs+1-j]);\ + { int score= ABS(srcp[-srcs-1+(j)] - srcp[+srcs-1-(j)])\ + + ABS(srcp[-srcs +(j)] - srcp[+srcs -(j)])\ + + ABS(srcp[-srcs+1+(j)] - srcp[+srcs+1-(j)]);\ if(score < spatial_score){\ spatial_score= score;\ - diff0= filp[-fils+j] - srcp[-srcs+j];\ - diff1= filp[+fils-j] - srcp[+srcs-j]; + diff0= filp[-fils+(j)] - srcp[-srcs+(j)];\ + diff1= filp[+fils-(j)] - srcp[+srcs-(j)]; CHECK(-1) CHECK(-2) }} }} CHECK( 1) CHECK( 2) }} }} |