wavpack: check packet size early