Browse Source

libavcodec/bitstream: switch to av_assert

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

+ 2
- 1
libavcodec/bitstream.c View File

@@ -28,6 +28,7 @@
* bitstream api. * bitstream api.
*/ */


#include "libavutil/avassert.h"
#include "avcodec.h" #include "avcodec.h"
#include "get_bits.h" #include "get_bits.h"
#include "put_bits.h" #include "put_bits.h"
@@ -283,7 +284,7 @@ int ff_init_vlc_sparse(VLC *vlc, int nb_bits, int nb_codes,


buf = av_malloc((nb_codes+1)*sizeof(VLCcode)); buf = av_malloc((nb_codes+1)*sizeof(VLCcode));


assert(symbols_size <= 2 || !symbols);
av_assert0(symbols_size <= 2 || !symbols);
j = 0; j = 0;
#define COPY(condition)\ #define COPY(condition)\
for (i = 0; i < nb_codes; i++) {\ for (i = 0; i < nb_codes; i++) {\


Loading…
Cancel
Save