apedec: assert that s->samples is not negative before trying to decode