diff options
author | Jun Zhao <mypopydev@gmail.com> | 2018-06-04 21:42:18 +0800 |
---|---|---|
committer | Jun Zhao <jun.zhao@intel.com> | 2018-06-10 08:46:18 +0800 |
commit | 12138402652f28649e63629ef76fba8b71561afb (patch) | |
tree | fd9e82bc35da07df6a775721aec99a352ee4ce0b /libavcodec/aacsbr_template.c | |
parent | 4030d3d3f4951c3df63e8231df90621eb75bb832 (diff) |
lavc/aacsbr: fix make checkheaders warning
move the the function aacsbr_tableinit definition from header file
to .c file to fix make checkheaders warning.
Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Diffstat (limited to 'libavcodec/aacsbr_template.c')
-rw-r--r-- | libavcodec/aacsbr_template.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/aacsbr_template.c b/libavcodec/aacsbr_template.c index 3fe78d5b62..821615f2ab 100644 --- a/libavcodec/aacsbr_template.c +++ b/libavcodec/aacsbr_template.c @@ -34,6 +34,18 @@ #include "libavutil/qsort.h" +static av_cold void aacsbr_tableinit(void) +{ + int n; + for (n = 1; n < 320; n++) + sbr_qmf_window_us[320 + n] = sbr_qmf_window_us[320 - n]; + sbr_qmf_window_us[384] = -sbr_qmf_window_us[384]; + sbr_qmf_window_us[512] = -sbr_qmf_window_us[512]; + + for (n = 0; n < 320; n++) + sbr_qmf_window_ds[n] = sbr_qmf_window_us[2*n]; +} + av_cold void AAC_RENAME(ff_aac_sbr_init)(void) { static const struct { |