Commit 99c4abfe authored by Robert Krüger's avatar Robert Krüger Committed by Michael Niedermayer

Revert "Revert "yadif: add parens around macro parameters""

This reverts commit ab00800c.
Signed-off-by: 's avatarRobert Krüger <krueger@lesspain.de>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4a38eeec
...@@ -38,12 +38,12 @@ typedef struct ThreadData { ...@@ -38,12 +38,12 @@ typedef struct ThreadData {
} ThreadData; } ThreadData;
#define CHECK(j)\ #define CHECK(j)\
{ int score = 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 +(j)] - cur[prefs -(j)])\
+ FFABS(cur[mrefs + 1 + j] - cur[prefs + 1 - j]);\ + FFABS(cur[mrefs + 1 + (j)] - cur[prefs + 1 - (j)]);\
if (score < spatial_score) {\ if (score < spatial_score) {\
spatial_score= 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 /* 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. */ * which reads up to and including x-3 and x+3. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment