Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2012/06/07 04:18:14... | ... |
@@ -171,7 +171,7 @@ static inline void put_bits(PutBitContext *s, int n, unsigned int value) |
171 | 171 |
|
172 | 172 |
static inline void put_sbits(PutBitContext *pb, int n, int32_t value) |
173 | 173 |
{ |
174 |
- assert(n >= 0 && n <= 31); |
|
174 |
+ av_assert2(n >= 0 && n <= 31); |
|
175 | 175 |
|
176 | 176 |
put_bits(pb, n, value & ((1<<n)-1)); |
177 | 177 |
} |
... | ... |
@@ -207,8 +207,8 @@ static inline uint8_t* put_bits_ptr(PutBitContext *s) |
207 | 207 |
*/ |
208 | 208 |
static inline void skip_put_bytes(PutBitContext *s, int n) |
209 | 209 |
{ |
210 |
- assert((put_bits_count(s)&7)==0); |
|
211 |
- assert(s->bit_left==32); |
|
210 |
+ av_assert2((put_bits_count(s)&7)==0); |
|
211 |
+ av_assert2(s->bit_left==32); |
|
212 | 212 |
s->buf_ptr += n; |
213 | 213 |
} |
214 | 214 |
|