rangecoder: use av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Jun 2012 21:36:22 +0000 (23:36 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 10 Jun 2012 21:36:22 +0000 (23:36 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/rangecoder.c

index 1a15b7f..8367a79 100644 (file)
@@ -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;
 }