Browse Source

g722enc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
38d1c5a4cc
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavcodec/g722enc.c

+ 2
- 1
libavcodec/g722enc.c View 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 {\


Loading…
Cancel
Save