avcodec/diracdec: Fix integer overflow with quant