Fix integer overflow diagnostics within opus

Recast several points in the Opus code where integer overflow happens.
The code expects overflow in these macros, but doesn't expect the
system to abort when it happens. This also includes saturating math.

Bug: 123428774
Test: Cts android.media.cts.EncoderTest#testOpusEncoders
2 files changed