diff options
| author | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@eclectronics.org> | 2013-12-29 12:19:38 +0000 |
| commit | f7813a5324be39d13ab536c245d15dfc602a7849 (patch) | |
| tree | fad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavcodec/avfft.c | |
| parent | b7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff) | |
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavcodec/avfft.c')
| -rw-r--r-- | ffmpeg/libavcodec/avfft.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/ffmpeg/libavcodec/avfft.c b/ffmpeg/libavcodec/avfft.c index 9e0ddaa..2200f37 100644 --- a/ffmpeg/libavcodec/avfft.c +++ b/ffmpeg/libavcodec/avfft.c @@ -16,6 +16,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include "libavutil/attributes.h" #include "libavutil/mem.h" #include "avfft.h" #include "fft.h" @@ -26,7 +27,7 @@ FFTContext *av_fft_init(int nbits, int inverse) { - FFTContext *s = av_malloc(sizeof(*s)); + FFTContext *s = av_mallocz(sizeof(*s)); if (s && ff_fft_init(s, nbits, inverse)) av_freep(&s); @@ -44,7 +45,7 @@ void av_fft_calc(FFTContext *s, FFTComplex *z) s->fft_calc(s, z); } -void av_fft_end(FFTContext *s) +av_cold void av_fft_end(FFTContext *s) { if (s) { ff_fft_end(s); @@ -79,7 +80,7 @@ void av_mdct_calc(FFTContext *s, FFTSample *output, const FFTSample *input) s->mdct_calc(s, output, input); } -void av_mdct_end(FFTContext *s) +av_cold void av_mdct_end(FFTContext *s) { if (s) { ff_mdct_end(s); @@ -106,7 +107,7 @@ void av_rdft_calc(RDFTContext *s, FFTSample *data) s->rdft_calc(s, data); } -void av_rdft_end(RDFTContext *s) +av_cold void av_rdft_end(RDFTContext *s) { if (s) { ff_rdft_end(s); @@ -133,7 +134,7 @@ void av_dct_calc(DCTContext *s, FFTSample *data) s->dct_calc(s, data); } -void av_dct_end(DCTContext *s) +av_cold void av_dct_end(DCTContext *s) { if (s) { ff_dct_end(s); |
