avcodec/dirac_dwt: Fix several integer overflows