From 29e80ca43f27a1d23237faea7d5c4345da966eb2 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 8 Aug 2022 16:16:10 +0100 Subject: [PATCH] better 0 detection in unpremultiply We were avoiding /0 by testing for alpha==0, however, this will still allow very small values of alpha to generate +/- Inf. Instead, check for abs(alpha)