X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fget_bits.h;h=56ef5f0cbe197f7eaa2dd6cabd67cc96aeb11638;hb=755e618399264d57a64a21115e2bf067b73492e7;hp=d7cf2863783b0cb049e1b397497e42407b777051;hpb=c00579ab32aa620116c97dbc52c4c31418bc7fbb;p=ffmpeg diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index d7cf2863783..56ef5f0cbe1 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -202,6 +202,13 @@ static inline int get_bits_count(const GetBitContext *s) return s->index; } +/** + * 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. + */ static inline void skip_bits_long(GetBitContext *s, int n) { #if UNCHECKED_BITSTREAM_READER