OSDN Git Service

Revert "yadif: add parens around macro parameters"
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Dec 2013 15:37:18 +0000 (16:37 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 1 Dec 2013 19:26:26 +0000 (20:26 +0100)
This reverts commit 49e617f9565b6528fe707bae7ea4b62b10c771a5.
This reduces the amount of non LGPL code, making a relicensing to LGPL
easier

Conflicts:

libavfilter/vf_yadif.c

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vf_yadif.c

index 1857ca9..933534d 100644 (file)
@@ -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. */