diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-11 01:36:22 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-11 01:36:22 +0400 |
commit | a5ca3203f03252e36c997e5e270cc36691cace5c (patch) | |
tree | a0087fd8cdf18f937bd99bf1b105cda70b364813 /libavcodec | |
parent | 1248de53c1ba6c27fba32a481ec32572139890a8 (diff) |
rangecoder: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/rangecoder.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/rangecoder.c b/libavcodec/rangecoder.c index 1a15b7ff1a..8367a79aff 100644 --- a/libavcodec/rangecoder.c +++ b/libavcodec/rangecoder.c @@ -33,6 +33,7 @@ #include <string.h> +#include "libavutil/avassert.h" #include "avcodec.h" #include "rangecoder.h" #include "bytestream.h" @@ -103,8 +104,8 @@ int ff_rac_terminate(RangeCoder *c){ c->range=0xFF; renorm_encoder(c); - assert(c->low == 0); - assert(c->range >= 0x100); + av_assert1(c->low == 0); + av_assert1(c->range >= 0x100); return c->bytestream - c->bytestream_start; } |