You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
sinewin_tablegen: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -23,11 +23,11 @@
|
|||||||
#ifndef AVCODEC_SINEWIN_TABLEGEN_H
|
#ifndef AVCODEC_SINEWIN_TABLEGEN_H
|
||||||
#define AVCODEC_SINEWIN_TABLEGEN_H
|
#define AVCODEC_SINEWIN_TABLEGEN_H
|
||||||
|
|
||||||
#include <assert.h>
|
|
||||||
// do not use libavutil/libm.h since this is compiled both
|
// 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
|
// for the host and the target and config.h is only valid for the target
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include "libavutil/attributes.h"
|
#include "libavutil/attributes.h"
|
||||||
|
#include "libavutil/avassert.h"
|
||||||
|
|
||||||
#if !CONFIG_HARDCODED_TABLES
|
#if !CONFIG_HARDCODED_TABLES
|
||||||
SINETABLE( 32);
|
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) {
|
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
|
#if !CONFIG_HARDCODED_TABLES
|
||||||
ff_sine_window_init(ff_sine_windows[index], 1 << index);
|
ff_sine_window_init(ff_sine_windows[index], 1 << index);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user