Commit 38d1c5a4 authored by Michael Niedermayer's avatar Michael Niedermayer

g722enc: switch to av_assert

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d57a9928
......@@ -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 {\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment