Commit 14090b70 authored by Paul B Mahol's avatar Paul B Mahol

avcodec/get_bits: add av_assert2 to get_bits_long()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 38a13155
......@@ -331,6 +331,7 @@ static inline void skip_bits1(GetBitContext *s)
*/
static inline unsigned int get_bits_long(GetBitContext *s, int n)
{
av_assert2(n>=0 && n<=32);
if (!n) {
return 0;
} else if (n <= MIN_CACHE_BITS) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment