A zero or negative sample size is impossible and should be reported as an error. Signed-off-by: Mans Rullgard <mans@mansr.com>