aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rangecoder.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-10 23:36:22 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-10 23:36:22 +0200
commita5ca3203f03252e36c997e5e270cc36691cace5c (patch)
treea0087fd8cdf18f937bd99bf1b105cda70b364813 /libavcodec/rangecoder.c
parent1248de53c1ba6c27fba32a481ec32572139890a8 (diff)
downloadffmpeg-a5ca3203f03252e36c997e5e270cc36691cace5c.tar.gz
rangecoder: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rangecoder.c')
-rw-r--r--libavcodec/rangecoder.c5
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;
}