aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2018-06-04 21:42:18 +0800
committerJun Zhao <jun.zhao@intel.com>2018-06-10 08:46:18 +0800
commit12138402652f28649e63629ef76fba8b71561afb (patch)
treefd9e82bc35da07df6a775721aec99a352ee4ce0b
parent4030d3d3f4951c3df63e8231df90621eb75bb832 (diff)
downloadffmpeg-12138402652f28649e63629ef76fba8b71561afb.tar.gz
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>
-rw-r--r--libavcodec/aacsbr_tablegen_common.h12
-rw-r--r--libavcodec/aacsbr_template.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/libavcodec/aacsbr_tablegen_common.h b/libavcodec/aacsbr_tablegen_common.h
index 8c8f6effa1..8e0dd9e1fd 100644
--- a/libavcodec/aacsbr_tablegen_common.h
+++ b/libavcodec/aacsbr_tablegen_common.h
@@ -111,16 +111,4 @@ static DECLARE_ALIGNED(32, INTFLOAT, sbr_qmf_window_us)[640] = {
Q31( 0.8537385600f),
};
-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];
-}
-
#endif /* AVCODEC_AACSBR_TABLEGEN_COMMON_H */
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 {