Commit dc9edb06 authored by Michael Niedermayer's avatar Michael Niedermayer

vf_idet: Fix macro arguments sideeffect

Fixes valgrind errors
should improve detection scores
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9ed6af4b
......@@ -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;
......
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