Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 29053/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-4814432697974784
Unified · Split
| @@ -1333,7 +1333,7 @@ static void do_apply_filter(APEContext *ctx, int version, APEFilter *f, · 1332 unmodified lines | ||
| 1333 | 1333 | /* Version 3.98 and later files */ |
| 1334 | 1334 | |
| 1335 | 1335 | /* Update the adaption coefficients */ |
| 1336 | − absres = FFABS(res); | |
| 1336 | + absres = FFABSU(res); | |
| 1337 | 1337 | if (absres) |
| 1338 | 1338 | *f->adaptcoeffs = APESIGN(res) * |
| 1339 | 1339 | (8 << ((absres > f->avg * 3) + (absres > f->avg * 4 / 3))); |