Fixes: warning: using floating point absolute value function 'fabs' when argument is of integer type No change in output Changing variables to float worsens compression significantly
Unified · Split
| @@ -1441,7 +1441,7 @@ static void encode_float32_remap(FFV1Context *f, FFV1SliceContext *sc, · 1440 unmodified lines | ||
| 1441 | 1441 | cost = FFMAX((delta + mul/2) / mul, 1); |
| 1442 | 1442 | float score = 1; |
| 1443 | 1443 | if (mul > 1) { |
| 1444 | − score *= (fabs(delta - cost*mul)+1); | |
| 1444 | + score *= (FFABS(delta - cost*mul)+1); | |
| 1445 | 1445 | if (mul_count > 1) |
| 1446 | 1446 | score *= score; |
| 1447 | 1447 | } |