diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-23 21:09:21 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-23 21:12:29 +0200 |
commit | f8fe4d22957fa4f0249465f2adba2c29d7fd0682 (patch) | |
tree | 82c0a8cf32b6ec4cb34adaa939f17ace5ce2506d /libavcodec/snow.h | |
parent | be64d5f52099166a91289d2389072f698f799981 (diff) | |
download | ffmpeg-f8fe4d22957fa4f0249465f2adba2c29d7fd0682.tar.gz |
snow.h: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snow.h')
-rw-r--r-- | libavcodec/snow.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavcodec/snow.h b/libavcodec/snow.h index d8a08fa9aa..c5d6492a9f 100644 --- a/libavcodec/snow.h +++ b/libavcodec/snow.h @@ -326,7 +326,7 @@ static av_always_inline void add_yblock(SnowContext *s, int sliced, slice_buffer if(b_w<=0 || b_h<=0) return; - assert(src_stride > 2*MB_SIZE + 5); + av_assert2(src_stride > 2*MB_SIZE + 5); if(!sliced && offset_dst) dst += src_x + src_y*dst_stride; @@ -493,7 +493,7 @@ static inline void init_ref(MotionEstContext *c, uint8_t *src[3], uint8_t *ref[3 c->src[0][i]= src [i]; c->ref[0][i]= ref [i] + offset[i]; } - assert(!ref_index); + av_assert2(!ref_index); } @@ -558,8 +558,8 @@ static inline void put_symbol2(RangeCoder *c, uint8_t *state, int v, int log2){ int i; int r= log2>=0 ? 1<<log2 : 1; - assert(v>=0); - assert(log2>=-4); + av_assert2(v>=0); + av_assert2(log2>=-4); while(v >= r){ put_rac(c, state+4+log2, 1); @@ -579,7 +579,7 @@ static inline int get_symbol2(RangeCoder *c, uint8_t *state, int log2){ int r= log2>=0 ? 1<<log2 : 1; int v=0; - assert(log2>=-4); + av_assert2(log2>=-4); while(get_rac(c, state+4+log2)){ v+= r; |