avcodec/wavpack: Fix overflow in adding tail