resample2: use av_assert()
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jul 2012 18:52:22 +0000 (20:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jul 2012 18:52:22 +0000 (20:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/resample2.c

index 5fe9924..f82b405 100644 (file)
@@ -25,6 +25,7 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
+#include "libavutil/avassert.h"
 #include "avcodec.h"
 #include "dsputil.h"
 
@@ -301,7 +302,7 @@ int av_resample(AVResampleContext *c, short *dst, short *src, int *consumed, int
 
     if(compensation_distance){
         compensation_distance -= dst_index;
-        assert(compensation_distance > 0);
+        av_assert2(compensation_distance > 0);
     }
     if(update_ctx){
         c->frac= frac;