diff options
-rw-r--r-- | libavcodec/get_bits.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/get_bits.h b/libavcodec/get_bits.h index 2e2adc2..c2f2671 100644 --- a/libavcodec/get_bits.h +++ b/libavcodec/get_bits.h @@ -403,6 +403,7 @@ static inline unsigned int get_bits(GetBitContext *s, int n) LAST_SKIP_BITS(re, s, n); CLOSE_READER(re, s); #endif + av_assert2(tmp < UINT64_C(1) << n); return tmp; } |