Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-08-01 06:19:27 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-08-01 06:19:27 +0400
commit38d1c5a4cc569e8605c8382f9c4a1dc34f4e07f9 (patch)
treef3c3d849a88e79e16468bdc62d50161c817c1973 /libavcodec/g722enc.c
parentd57a9928eac1fdc908954eb89dc3d2783e4d1996 (diff)
g722enc: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/g722enc.c')
-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 {\