It seems that any leftover bits on the sequence stream are ignored. While it is debatable what it should do, it should either: 1) Cause an error or 2) Be specified in the spec Here are a couple of samples with extra bits in the sequences: [extrabits.zip](https://github.com/facebook/zstd/files/3109313/extrabits.zip)