mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-16 20:35:23 +00:00
snow.h: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
be64d5f520
commit
f8fe4d2295
@ -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;
|
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)
|
if(!sliced && offset_dst)
|
||||||
dst += src_x + src_y*dst_stride;
|
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->src[0][i]= src [i];
|
||||||
c->ref[0][i]= ref [i] + offset[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 i;
|
||||||
int r= log2>=0 ? 1<<log2 : 1;
|
int r= log2>=0 ? 1<<log2 : 1;
|
||||||
|
|
||||||
assert(v>=0);
|
av_assert2(v>=0);
|
||||||
assert(log2>=-4);
|
av_assert2(log2>=-4);
|
||||||
|
|
||||||
while(v >= r){
|
while(v >= r){
|
||||||
put_rac(c, state+4+log2, 1);
|
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 r= log2>=0 ? 1<<log2 : 1;
|
||||||
int v=0;
|
int v=0;
|
||||||
|
|
||||||
assert(log2>=-4);
|
av_assert2(log2>=-4);
|
||||||
|
|
||||||
while(get_rac(c, state+4+log2)){
|
while(get_rac(c, state+4+log2)){
|
||||||
v+= r;
|
v+= r;
|
||||||
|
Loading…
Reference in New Issue
Block a user