[FFmpeg-cvslog] add bracket around the argument (fixes compilation error with ICL)
J. Bohl
git at videolan.org
Sat Jun 9 00:37:06 CEST 2012
ffmpeg | branch: master | J. Bohl <jbohl at h-quer.de> | Fri Jun 8 23:05:08 2012 +0200| [023c07307639f8067a23f12e83058e632d230fb9] | committer: Michael Niedermayer
add bracket around the argument (fixes compilation error with ICL)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=023c07307639f8067a23f12e83058e632d230fb9
---
libavfilter/libmpcodecs/vf_mcdeint.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavfilter/libmpcodecs/vf_mcdeint.c b/libavfilter/libmpcodecs/vf_mcdeint.c
index 64c402c..326274b 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) }} }}
More information about the ffmpeg-cvslog
mailing list