[FFmpeg-cvslog] kbdwin: switch to av_assert

Michael Niedermayer git at videolan.org
Sun Jul 22 05:27:43 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jul 22 05:18:01 2012 +0200| [86af2928839ba75d86422d27a2fe573514929502] | committer: Michael Niedermayer

kbdwin: switch to av_assert

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86af2928839ba75d86422d27a2fe573514929502
---

 libavcodec/kbdwin.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavcodec/kbdwin.c b/libavcodec/kbdwin.c
index aa4b972..2722312 100644
--- a/libavcodec/kbdwin.c
+++ b/libavcodec/kbdwin.c
@@ -16,7 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <assert.h>
+
+#include <libavutil/avassert.h>
 #include <libavutil/mathematics.h>
 #include "libavutil/attributes.h"
 #include "kbdwin.h"
@@ -30,7 +31,7 @@ av_cold void ff_kbd_window_init(float *window, float alpha, int n)
    double local_window[FF_KBD_WINDOW_MAX];
    double alpha2 = (alpha * M_PI / n) * (alpha * M_PI / n);
 
-   assert(n <= FF_KBD_WINDOW_MAX);
+   av_assert0(n <= FF_KBD_WINDOW_MAX);
 
    for (i = 0; i < n; i++) {
        tmp = i * (n - i) * alpha2;



More information about the ffmpeg-cvslog mailing list