while (num_bits > ostream->free_bits) {
/* Buffer variable does not have space for the new bits. It
* needs to be flushed as a 16-bit integer. Bits in the second
while (num_bits > ostream->free_bits) {
/* Buffer variable does not have space for the new bits. It
* needs to be flushed as a 16-bit integer. Bits in the second