aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-01 04:19:27 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-01 04:19:27 +0200
commit38d1c5a4cc569e8605c8382f9c4a1dc34f4e07f9 (patch)
treef3c3d849a88e79e16468bdc62d50161c817c1973
parentd57a9928eac1fdc908954eb89dc3d2783e4d1996 (diff)
downloadffmpeg-38d1c5a4cc569e8605c8382f9c4a1dc34f4e07f9.tar.gz
g722enc: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/g722enc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index 25bfabf21e..92643bb02a 100644
--- a/libavcodec/g722enc.c
+++ b/libavcodec/g722enc.c
@@ -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 {\