[FFmpeg-cvslog] g722enc: switch to av_assert

Michael Niedermayer git at videolan.org
Wed Aug 1 04:22:49 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug  1 04:19:27 2012 +0200| [38d1c5a4cc569e8605c8382f9c4a1dc34f4e07f9] | committer: Michael Niedermayer

g722enc: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38d1c5a4cc569e8605c8382f9c4a1dc34f4e07f9
---

 libavcodec/g722enc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/g722enc.c b/libavcodec/g722enc.c
index 25bfabf..92643bb 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 {\



More information about the ffmpeg-cvslog mailing list