g722enc: switch to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Aug 2012 02:19:27 +0000 (04:19 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 1 Aug 2012 02:19:27 +0000 (04:19 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/g722enc.c

index 25bfabf..92643bb 100644 (file)
@@ -27,6 +27,7 @@
  * G.722 ADPCM audio encoder
  */
 
+#include "libavutil/avassert.h"
 #include "avcodec.h"
 #include "internal.h"
 #include "g722.h"
@@ -246,7 +247,7 @@ static void g722_encode_trellis(G722Context *c, int trellis,
                     continue;\
                 if (heap_pos[index] < frontier) {\
                     pos = heap_pos[index]++;\
-                    assert(pathn[index] < FREEZE_INTERVAL * frontier);\
+                    av_assert2(pathn[index] < FREEZE_INTERVAL * frontier);\
                     node = nodes_next[index][pos] = next[index]++;\
                     node->path = pathn[index]++;\
                 } else {\