avcodec/apedec: Fix 2 signed overflows