mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-02 04:43:27 +00:00
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:
parent
9ed6af4be2
commit
dc9edb06b0
@ -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;
|
int ret=0;
|
||||||
|
|
||||||
for(x=0; x<w; x++){
|
for(x=0; x<w; x++){
|
||||||
ret += FFABS((*a++ + *c++) - 2 * *b++);
|
int v = (*a++ + *c++) - 2 * *b++;
|
||||||
|
ret += FFABS(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
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;
|
int ret=0;
|
||||||
|
|
||||||
for(x=0; x<w; x++){
|
for(x=0; x<w; x++){
|
||||||
ret += FFABS((*a++ + *c++) - 2 * *b++);
|
int v = (*a++ + *c++) - 2 * *b++;
|
||||||
|
ret += FFABS(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user