avcodec/wavpack: Fix integer overflow in DEC_MED() / INC_MED()