avcodec/dirac_arith: fix integer overflow