* Advances the bit stream. */
| 274 | * Advances the bit stream. |
| 275 | */ |
| 276 | static void bit_advance (bit_stream *bs, int n, unsigned char **p) { |
| 277 | bs->bitbuf >>= n; |
| 278 | bs->bitcount -= n; |
| 279 | if (bs->bitcount < 16) { |
| 280 | (*p) += 2; |
| 281 | bs->bitbuf |= (lword(*p)<<bs->bitcount); |
| 282 | bs->bitcount += 16; |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | /* |
| 287 | * Reads some bits in one go (ie the above two routines combined). |
no test coverage detected