diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-02 20:52:22 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-02 20:52:22 +0200 |
commit | 2ceaffc62783f8544a1848630fa725792b1cbd50 (patch) | |
tree | 4670b18b1c147dd6b8cab04a57f19149acc9c786 | |
parent | 7309451d739e2e65647579bcb84c2f694e56d821 (diff) | |
download | ffmpeg-2ceaffc62783f8544a1848630fa725792b1cbd50.tar.gz |
resample2: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/resample2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c index 5fe9924c40..f82b405bba 100644 --- a/libavcodec/resample2.c +++ b/libavcodec/resample2.c @@ -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; |