diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-02 21:07:10 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2026-04-02 21:07:10 +1100 |
| commit | 8ea1a6dffc327d2f68a50e00aebd58000181853f (patch) | |
| tree | 40962baad102163cb881afcc743715b775d01f42 /src | |
| parent | 69b4c8a7b8fbf1ed9fa4422ea6bbd4865297166f (diff) | |
feat(math): add math core and replace FF_ABS macro with ff_absi
Diffstat (limited to 'src')
| -rw-r--r-- | src/format/image/png.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c index 755ba9b..cb7f08b 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -253,9 +253,9 @@ ff_result ff_png_data_handler(ff_ctx* ctx, uint8_t *buf, size_t len, ff_png_ctx case 4: // Paeth Predictor { int p = left + above - diagonal; - int pa = FF_ABS(p - left); - int pb = FF_ABS(p - above); - int pc = FF_ABS(p - diagonal); + int pa = ff_absi(p - left); + int pb = ff_absi(p - above); + int pc = ff_absi(p - diagonal); if (pa <= pb && pa <= pc) reconstructed_buf[x] = raw[x] + left; |
