Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Krüger <krueger@lesspain.de>2014-01-04 16:50:05 +0400
committerMichael Niedermayer <michaelni@gmx.at>2014-01-14 17:19:14 +0400
commit99c4abfe8862ec2e4c724af249799ca076a35a91 (patch)
tree6b35568fea337bbf83cb27122bda848a3e8e97fc /libavfilter/vf_yadif.c
parent4a38eeec38c5afd8216bf0a613198b3390cc0b46 (diff)
Revert "Revert "yadif: add parens around macro parameters""
This reverts commit ab00800cde1af1f252731118062dd5149f1a7ed7. Signed-off-by: Robert Krüger <krueger@lesspain.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_yadif.c')
-rw-r--r--libavfilter/vf_yadif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/vf_yadif.c b/libavfilter/vf_yadif.c
index 933534d551..1857ca9d87 100644
--- a/libavfilter/vf_yadif.c
+++ b/libavfilter/vf_yadif.c
@@ -38,12 +38,12 @@ typedef struct ThreadData {
} ThreadData;
#define CHECK(j)\
- { int score = FFABS(cur[mrefs - 1 + j] - cur[prefs - 1 - j])\
- + FFABS(cur[mrefs + j] - cur[prefs - j])\
- + FFABS(cur[mrefs + 1 + j] - cur[prefs + 1 - j]);\
+ { int score = FFABS(cur[mrefs - 1 + (j)] - cur[prefs - 1 - (j)])\
+ + FFABS(cur[mrefs +(j)] - cur[prefs -(j)])\
+ + FFABS(cur[mrefs + 1 + (j)] - cur[prefs + 1 - (j)]);\
if (score < spatial_score) {\
spatial_score= score;\
- spatial_pred= (cur[mrefs + j] + cur[prefs - j])>>1;\
+ spatial_pred= (cur[mrefs +(j)] + cur[prefs -(j)])>>1;\
/* The is_not_edge argument here controls when the code will enter a branch
* which reads up to and including x-3 and x+3. */