* Fixes up a bit stream after literals have been read out of the * data stream. */
| 257 | * data stream. |
| 258 | */ |
| 259 | static void bitread_fix (bit_stream *bs, unsigned char **p) { |
| 260 | bs->bitcount -= 16; |
| 261 | bs->bitbuf &= (1<<bs->bitcount)-1; /* remove the top 16 bits */ |
| 262 | bs->bitbuf |= (lword(*p)<<bs->bitcount);/* replace with what's at *p */ |
| 263 | bs->bitcount += 16; |
| 264 | } |
| 265 | |
| 266 | /* |
| 267 | * Returns some bits. |