summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-25 18:41:26 +0100
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-12-31 21:30:51 +0100
commit768418292194a82821f92b782ad50e5fe53121f1 (patch)
tree39bd95fe2350c52a3894c14625dfe32a80fab77e
parent4a160cbef41687f0251320cbc320c2a5d9791bc7 (diff)
avcodec/opustab: Make array static
Reviewed-by: Lynne <dev@lynne.ee> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavcodec/opustab.c12
-rw-r--r--libavcodec/opustab.h1
2 files changed, 6 insertions, 7 deletions
diff --git a/libavcodec/opustab.c b/libavcodec/opustab.c
index 64070f8299..7276dad793 100644
--- a/libavcodec/opustab.c
+++ b/libavcodec/opustab.c
@@ -950,7 +950,7 @@ const uint16_t ff_celt_qn_exp2[] = {
16384, 17866, 19483, 21247, 23170, 25267, 27554, 30048
};
-const uint32_t ff_celt_pvq_u[1272] = {
+static const uint32_t celt_pvq_u[1272] = {
/* N = 0, K = 0...176 */
1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
@@ -1153,9 +1153,9 @@ const float ff_celt_window2[120] = {
};
const uint32_t * const ff_celt_pvq_u_row[15] = {
- ff_celt_pvq_u + 0, ff_celt_pvq_u + 176, ff_celt_pvq_u + 351,
- ff_celt_pvq_u + 525, ff_celt_pvq_u + 698, ff_celt_pvq_u + 870,
- ff_celt_pvq_u + 1041, ff_celt_pvq_u + 1131, ff_celt_pvq_u + 1178,
- ff_celt_pvq_u + 1207, ff_celt_pvq_u + 1226, ff_celt_pvq_u + 1240,
- ff_celt_pvq_u + 1248, ff_celt_pvq_u + 1254, ff_celt_pvq_u + 1257
+ celt_pvq_u + 0, celt_pvq_u + 176, celt_pvq_u + 351,
+ celt_pvq_u + 525, celt_pvq_u + 698, celt_pvq_u + 870,
+ celt_pvq_u + 1041, celt_pvq_u + 1131, celt_pvq_u + 1178,
+ celt_pvq_u + 1207, celt_pvq_u + 1226, celt_pvq_u + 1240,
+ celt_pvq_u + 1248, celt_pvq_u + 1254, celt_pvq_u + 1257
};
diff --git a/libavcodec/opustab.h b/libavcodec/opustab.h
index 892126bb23..cdd0456e3c 100644
--- a/libavcodec/opustab.h
+++ b/libavcodec/opustab.h
@@ -152,7 +152,6 @@ extern const uint8_t ff_celt_bit_deinterleave[];
extern const uint8_t ff_celt_hadamard_order[];
extern const uint16_t ff_celt_qn_exp2[];
-extern const uint32_t ff_celt_pvq_u[1272];
extern const float ff_celt_postfilter_taps[3][3];