mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
g722enc: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
d57a9928ea
commit
38d1c5a4cc
@ -27,6 +27,7 @@
|
|||||||
* G.722 ADPCM audio encoder
|
* G.722 ADPCM audio encoder
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
#include "avcodec.h"
|
#include "avcodec.h"
|
||||||
#include "internal.h"
|
#include "internal.h"
|
||||||
#include "g722.h"
|
#include "g722.h"
|
||||||
@ -246,7 +247,7 @@ static void g722_encode_trellis(G722Context *c, int trellis,
|
|||||||
continue;\
|
continue;\
|
||||||
if (heap_pos[index] < frontier) {\
|
if (heap_pos[index] < frontier) {\
|
||||||
pos = heap_pos[index]++;\
|
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 = nodes_next[index][pos] = next[index]++;\
|
||||||
node->path = pathn[index]++;\
|
node->path = pathn[index]++;\
|
||||||
} else {\
|
} else {\
|
||||||
|
Loading…
x
Reference in New Issue
Block a user