Browse Source

rangecoder: use av_assert

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

+ 3
- 2
libavcodec/rangecoder.c View File

@@ -33,6 +33,7 @@


#include <string.h> #include <string.h>


#include "libavutil/avassert.h"
#include "avcodec.h" #include "avcodec.h"
#include "rangecoder.h" #include "rangecoder.h"
#include "bytestream.h" #include "bytestream.h"
@@ -103,8 +104,8 @@ int ff_rac_terminate(RangeCoder *c){
c->range=0xFF; c->range=0xFF;
renorm_encoder(c); 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; return c->bytestream - c->bytestream_start;
} }


Loading…
Cancel
Save