diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 21:18:33 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-06 21:18:33 +0200 |
commit | c3b6efa4cb25400d7ff8853ee6ebd95c29b744a6 (patch) | |
tree | dd7806a1143412a6f37d50b74c2ecc1cf92260dc | |
parent | 62eace231c8d8bb4125523a8a29decd98a008040 (diff) | |
download | ffmpeg-c3b6efa4cb25400d7ff8853ee6ebd95c29b744a6.tar.gz |
sinewin_tablegen: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/sinewin_tablegen.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/sinewin_tablegen.h b/libavcodec/sinewin_tablegen.h index dd7d992ae1..a11164d86c 100644 --- a/libavcodec/sinewin_tablegen.h +++ b/libavcodec/sinewin_tablegen.h @@ -23,11 +23,11 @@ #ifndef AVCODEC_SINEWIN_TABLEGEN_H #define AVCODEC_SINEWIN_TABLEGEN_H -#include <assert.h> // do not use libavutil/libm.h since this is compiled both // for the host and the target and config.h is only valid for the target #include <math.h> #include "libavutil/attributes.h" +#include "libavutil/avassert.h" #if !CONFIG_HARDCODED_TABLES SINETABLE( 32); @@ -57,7 +57,7 @@ av_cold void ff_sine_window_init(float *window, int n) { } av_cold void ff_init_ff_sine_windows(int index) { - assert(index >= 0 && index < FF_ARRAY_ELEMS(ff_sine_windows)); + av_assert0(index >= 0 && index < FF_ARRAY_ELEMS(ff_sine_windows)); #if !CONFIG_HARDCODED_TABLES ff_sine_window_init(ff_sine_windows[index], 1 << index); #endif |