avcodec/diracdec: Prevent integer overflow in intermediate in global_mv()