]> git.sesse.net Git - ffmpeg/commitdiff
lavc/aacsbr: fix make checkheaders warning
authorJun Zhao <mypopydev@gmail.com>
Mon, 4 Jun 2018 13:42:18 +0000 (21:42 +0800)
committerJun Zhao <jun.zhao@intel.com>
Sun, 10 Jun 2018 00:46:18 +0000 (08:46 +0800)
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>
libavcodec/aacsbr_tablegen_common.h
libavcodec/aacsbr_template.c

index 8c8f6effa16fc8054a83444a30088f66437c4626..8e0dd9e1fdb2ffa1bb819db90337902a4c96107a 100644 (file)
@@ -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 */
index 3fe78d5b622aa3e0376ac9a075cf53a33d91472a..821615f2ab5ad62e0c59f88c53639a5ae5c167c5 100644 (file)
 
 #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 {