mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
put_bits: switch assert to av_assert2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3fb945a935
commit
ab553612e7
1 changed files with 2 additions and 1 deletions
|
|
@ -33,6 +33,7 @@
|
||||||
#include "libavutil/common.h"
|
#include "libavutil/common.h"
|
||||||
#include "libavutil/intreadwrite.h"
|
#include "libavutil/intreadwrite.h"
|
||||||
#include "libavutil/log.h"
|
#include "libavutil/log.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "mathops.h"
|
#include "mathops.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
|
@ -131,7 +132,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value)
|
||||||
int bit_left;
|
int bit_left;
|
||||||
|
|
||||||
// printf("put_bits=%d %x\n", n, value);
|
// printf("put_bits=%d %x\n", n, value);
|
||||||
assert(n <= 31 && value < (1U << n));
|
av_assert2(n <= 31 && value < (1U << n));
|
||||||
|
|
||||||
bit_buf = s->bit_buf;
|
bit_buf = s->bit_buf;
|
||||||
bit_left = s->bit_left;
|
bit_left = s->bit_left;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue