Revision 391a1327 libavfilter/vf_yadif.c

View differences:

libavfilter/vf_yadif.c
73 73
                          + FFABS(cur[-refs+1] - cur[+refs+1]) - 1;
74 74

  
75 75
#define CHECK(j)\
76
    {   int score = FFABS(cur[-refs-1+j] - cur[+refs-1-j])\
77
                  + FFABS(cur[-refs  +j] - cur[+refs  -j])\
78
                  + FFABS(cur[-refs+1+j] - cur[+refs+1-j]);\
76
    {   int score = FFABS(cur[-refs-1+(j)] - cur[+refs-1-(j)])\
77
                  + FFABS(cur[-refs  +(j)] - cur[+refs  -(j)])\
78
                  + FFABS(cur[-refs+1+(j)] - cur[+refs+1-(j)]);\
79 79
        if (score < spatial_score) {\
80 80
            spatial_score= score;\
81
            spatial_pred= (cur[-refs  +j] + cur[+refs  -j])>>1;\
81
            spatial_pred= (cur[-refs  +(j)] + cur[+refs  -(j)])>>1;\
82 82

  
83 83
        CHECK(-1) CHECK(-2) }} }}
84 84
        CHECK( 1) CHECK( 2) }} }}

Also available in: Unified diff