Browse Source

rangecoder.h: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
f0a3259f9a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavcodec/rangecoder.h

+ 4
- 4
libavcodec/rangecoder.h View File

@@ -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];


Loading…
Cancel
Save