summaryrefslogtreecommitdiff
path: root/libavcodec/rangecoder.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-24 20:18:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-24 20:18:00 +0200
commitf0a3259f9af5a4750d2c6cf57afd4b7e2f60d64d (patch)
treed1d43768575ae10c706edebd8a8e9c787cf079c1 /libavcodec/rangecoder.h
parentee51565e8e14d6cb6410834464377fa1a3098bda (diff)
downloadffmpeg-f0a3259f9af5a4750d2c6cf57afd4b7e2f60d64d.tar.gz
rangecoder.h: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/rangecoder.h')
-rw-r--r--libavcodec/rangecoder.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/rangecoder.h b/libavcodec/rangecoder.h
index 47c0362ba3..f0c86d0a19 100644
--- a/libavcodec/rangecoder.h
+++ b/libavcodec/rangecoder.h
@@ -28,8 +28,8 @@
#define AVCODEC_RANGECODER_H
#include <stdint.h>
-#include <assert.h>
#include "libavutil/common.h"
+#include "libavutil/avassert.h"
typedef struct RangeCoder{
int low;
@@ -82,9 +82,9 @@ static inline int get_rac_count(RangeCoder *c){
static inline void put_rac(RangeCoder *c, uint8_t * const state, int bit){
int range1= (c->range * (*state)) >> 8;
- assert(*state);
- assert(range1 < c->range);
- assert(range1 > 0);
+ av_assert2(*state);
+ av_assert2(range1 < c->range);
+ av_assert2(range1 > 0);
if(!bit){
c->range -= range1;
*state= c->zero_state[*state];