diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-21 06:40:12 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-21 06:40:12 +0400 |
commit | 953c7550f832deaf7bec6c2451a9d23706261154 (patch) | |
tree | b291168c2f01bb16446088f66ea7e5d8917dfd2f /libavcodec/snowenc.c | |
parent | 7b79c84b40b7bf68d5e109ef83d295434276ca95 (diff) |
avcodec/snowenc: convert speed relevant asserts to av_assert2()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r-- | libavcodec/snowenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index 586dc1d830..9d4efa4647 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -62,10 +62,10 @@ static void find_sse(SnowContext *s, Plane *p, int *score, int score_stride, IDW int sx= (x-xo + step/2) / step / Q2_STEP; int sy= (y-yo + step/2) / step / Q2_STEP; int v= r0[x + y*p->width] - r1[x + y*p->width]; - assert(sx>=0 && sy>=0 && sx < score_stride); + av_assert2(sx>=0 && sy>=0 && sx < score_stride); v= ((v+8)>>4)<<4; score[sx + sy*score_stride] += v*v; - assert(score[sx + sy*score_stride] >= 0); + av_assert2(score[sx + sy*score_stride] >= 0); } } } @@ -963,10 +963,10 @@ static int encode_subband_c0run(SnowContext *s, SubBand *b, const IDWTELEM *src, if(run_index <= max_index) put_symbol2(&s->c, b->state[1], run, 3); - assert(v); + av_assert2(v); }else{ run--; - assert(!v); + av_assert2(!v); } } if(v){ |