[FFmpeg-cvslog] golomb: use av_assert
Michael Niedermayer
git at videolan.org
Wed Jun 6 20:18:40 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Jun 6 20:13:17 2012 +0200| [28e4f906fa1fa6a9a357f6e8ebaf5a1377b10f1c] | committer: Michael Niedermayer
golomb: use av_assert
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28e4f906fa1fa6a9a357f6e8ebaf5a1377b10f1c
---
libavcodec/golomb.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/libavcodec/golomb.h b/libavcodec/golomb.h
index 32e53a4..fddc807 100644
--- a/libavcodec/golomb.h
+++ b/libavcodec/golomb.h
@@ -146,7 +146,7 @@ static inline int svq3_get_ue_golomb(GetBitContext *gb){
* read unsigned truncated exp golomb code.
*/
static inline int get_te0_golomb(GetBitContext *gb, int range){
- assert(range >= 1);
+ av_assert2(range >= 1);
if(range==1) return 0;
else if(range==2) return get_bits1(gb)^1;
@@ -157,7 +157,7 @@ static inline int get_te0_golomb(GetBitContext *gb, int range){
* read unsigned truncated exp golomb code.
*/
static inline int get_te_golomb(GetBitContext *gb, int range){
- assert(range >= 1);
+ av_assert2(range >= 1);
if(range==2) return get_bits1(gb)^1;
else return get_ue_golomb(gb);
@@ -429,7 +429,7 @@ static inline int get_te(GetBitContext *s, int r, char *file, const char *func,
static inline void set_ue_golomb(PutBitContext *pb, int i){
int e;
- assert(i>=0);
+ av_assert2(i>=0);
#if 0
if(i=0){
@@ -450,8 +450,8 @@ static inline void set_ue_golomb(PutBitContext *pb, int i){
* write truncated unsigned exp golomb code.
*/
static inline void set_te_golomb(PutBitContext *pb, int i, int range){
- assert(range >= 1);
- assert(i<=range);
+ av_assert2(range >= 1);
+ av_assert2(i<=range);
if(range==2) put_bits(pb, 1, i^1);
else set_ue_golomb(pb, i);
@@ -482,7 +482,7 @@ static inline void set_se_golomb(PutBitContext *pb, int i){
static inline void set_ur_golomb(PutBitContext *pb, int i, int k, int limit, int esc_len){
int e;
- assert(i>=0);
+ av_assert2(i>=0);
e= i>>k;
if(e<limit){
@@ -498,7 +498,7 @@ static inline void set_ur_golomb(PutBitContext *pb, int i, int k, int limit, int
static inline void set_ur_golomb_jpegls(PutBitContext *pb, int i, int k, int limit, int esc_len){
int e;
- assert(i>=0);
+ av_assert2(i>=0);
e= (i>>k) + 1;
if(e<limit){
More information about the ffmpeg-cvslog
mailing list