vf_idet: Fix macro arguments sideeffect

Fixes valgrind errors
should improve detection scores

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-02-21 01:49:56 +01:00
parent 9ed6af4be2
commit dc9edb06b0
1 changed files with 4 additions and 2 deletions

View File

@ -83,7 +83,8 @@ static int filter_line_c(const uint8_t *a, const uint8_t *b, const uint8_t *c, i
int ret=0;
for(x=0; x<w; x++){
ret += FFABS((*a++ + *c++) - 2 * *b++);
int v = (*a++ + *c++) - 2 * *b++;
ret += FFABS(v);
}
return ret;
@ -95,7 +96,8 @@ static int filter_line_c_16bit(const uint16_t *a, const uint16_t *b, const uint1
int ret=0;
for(x=0; x<w; x++){
ret += FFABS((*a++ + *c++) - 2 * *b++);
int v = (*a++ + *c++) - 2 * *b++;
ret += FFABS(v);
}
return ret;