Browse Source

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

This reverts commit ab00800cde.

Signed-off-by: Robert Krüger <krueger@lesspain.de>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Robert Krüger Michael Niedermayer 12 years ago
parent
commit
99c4abfe88
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavfilter/vf_yadif.c

+ 4
- 4
libavfilter/vf_yadif.c View 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. */


Loading…
Cancel
Save