libavcodec/bitstream: switch to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Jul 2012 20:17:52 +0000 (22:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Jul 2012 21:54:13 +0000 (23:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/bitstream.c

index 506eb33..0d3f597 100644 (file)
@@ -28,6 +28,7 @@
  * bitstream api.
  */
 
+#include "libavutil/avassert.h"
 #include "avcodec.h"
 #include "get_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));
 
-    assert(symbols_size <= 2 || !symbols);
+    av_assert0(symbols_size <= 2 || !symbols);
     j = 0;
 #define COPY(condition)\
     for (i = 0; i < nb_codes; i++) {\