xa: abort if number of channels or sample rate is 0
Fixes #2711.
Signed-off-by: Paul B Mahol <onemda@gmail.com>