mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-19 19:03:00 +02: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user