swresample/resample: replace assert by av_assert
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Jun 2014 12:41:01 +0000 (14:41 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 14 Jun 2014 14:33:09 +0000 (16:33 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample.c

index 4b456c2..5b7a0f9 100644 (file)
@@ -447,7 +447,7 @@ static int invert_initial_buffer(ResampleContext *c, AudioData *dst, const Audio
     *out_idx = c->filter_length + (c->index >> c->phase_shift);
     *out_sz = 1 + c->filter_length * 2 - *out_idx;
     c->index &= c->phase_mask;
-    assert(res > 0);
+    av_assert1(res > 0);
 
     return res;
 }