unpack accepted a bit depth of 0: the input requirement became zero bytes, so one source byte produced a header-sized buffer of zero samples. Depths outside 1..=16 (the u16 output range) are now rejected up front.