]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/integer.c
integer: fix typos in asserts
[ffmpeg] / libavutil / integer.c
index 4f9b66cbc8e0aa90fdbb700f79e27a952c2a9e64..38620b2f2def465e6f104652bda2a4be4291c632 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "common.h"
 #include "integer.h"
+#include "avassert.h"
 
 AVInteger av_add_i(AVInteger a, AVInteger b){
     int i, carry=0;
@@ -110,8 +111,8 @@ AVInteger av_mod_i(AVInteger *quot, AVInteger a, AVInteger b){
     AVInteger quot_temp;
     if(!quot) quot = &quot_temp;
 
-    assert((int16_t)a[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b[AV_INTEGER_SIZE-1] >= 0);
-    assert(av_log2(b)>=0);
+    av_assert2((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0);
+    av_assert2(av_log2_i(b)>=0);
 
     if(i > 0)
         b= av_shr_i(b, -i);