elbg: switch to av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Aug 2012 19:54:52 +0000 (21:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 18 Aug 2012 19:54:52 +0000 (21:54 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/elbg.c

index 38028da..2707599 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <string.h>
 
+#include "libavutil/avassert.h"
 #include "libavutil/common.h"
 #include "libavutil/lfg.h"
 #include "elbg.h"
@@ -111,7 +112,7 @@ static int get_high_utility_cell(elbg_data *elbg)
     while (elbg->utility_inc[i] < r)
         i++;
 
-    assert(elbg->cells[i]);
+    av_assert2(elbg->cells[i]);
 
     return i;
 }