[FFmpeg-cvslog] resample2: use av_assert()
Michael Niedermayer
git at videolan.org
Mon Jul 2 20:55:39 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Jul 2 20:52:22 2012 +0200| [2ceaffc62783f8544a1848630fa725792b1cbd50] | committer: Michael Niedermayer
resample2: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ceaffc62783f8544a1848630fa725792b1cbd50
---
libavcodec/resample2.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index 5fe9924..f82b405 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -25,6 +25,7 @@
* @author Michael Niedermayer <michaelni at 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;
More information about the ffmpeg-cvslog
mailing list