* Skips the specified number of bits. * @param n the number of bits to skip, * For the UNCHECKED_BITSTREAM_READER this must not cause the distance * from the start to overflow int32_t. Staying within the bitstream + padding * is sufficient, too. */
| 278 | * is sufficient, too. |
| 279 | */ |
| 280 | static inline void skip_bits_long(GetBitContext *s, int n) |
| 281 | { |
| 282 | #if UNCHECKED_BITSTREAM_READER |
| 283 | s->index += n; |
| 284 | #else |
| 285 | s->index += av_clip(n, -s->index, s->size_in_bits_plus8 - s->index); |
| 286 | #endif |
| 287 | } |
| 288 | |
| 289 | /** |
| 290 | * Read MPEG-1 dc-style VLC (sign bit + mantissa with no MSB). |
no outgoing calls
no test coverage detected