You integrate, add $C$, then hunt for it.
When you are given two states — $v_0$ at $x_0$, $v_1$ at $x_1$ — integrate between them. The limits carry the conditions: no constant to chase, no absolute value to argue.
Next time: Two given states means a definite integral.