You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/get_bits: add av_assert2 to get_bits_long()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -331,6 +331,7 @@ static inline void skip_bits1(GetBitContext *s)
|
|||||||
*/
|
*/
|
||||||
static inline unsigned int get_bits_long(GetBitContext *s, int n)
|
static inline unsigned int get_bits_long(GetBitContext *s, int n)
|
||||||
{
|
{
|
||||||
|
av_assert2(n>=0 && n<=32);
|
||||||
if (!n) {
|
if (!n) {
|
||||||
return 0;
|
return 0;
|
||||||
} else if (n <= MIN_CACHE_BITS) {
|
} else if (n <= MIN_CACHE_BITS) {
|
||||||
|
Reference in New Issue
Block a user