summaryrefslogtreecommitdiff
path: root/libavcodec/ac3.c
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gmail.com>2011-01-25 01:59:36 +0000
committerMans Rullgard <mans@mansr.com>2011-01-25 15:10:10 +0000
commit6ed3b504f984dc6cefde8d57a57726f9d30e5033 (patch)
tree08a324389dfd7629e4301a8e69277531655bc1a7 /libavcodec/ac3.c
parent362bfe29971b3bb8497d2b341337697be15a257c (diff)
Move ff_ac3_critical_band_size_tab in ac3.c for non-hardcoded tables.
This symbol is only ever used to calculate the non-hardcoded tables, so only enable it in that case, and static to the source unit that uses it. Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/ac3.c')
-rw-r--r--libavcodec/ac3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/ac3.c b/libavcodec/ac3.c
index 0f442fa487..a8b4e0b268 100644
--- a/libavcodec/ac3.c
+++ b/libavcodec/ac3.c
@@ -70,6 +70,12 @@ static const uint8_t bin_to_band_tab[253] = {
};
#else /* CONFIG_HARDCODED_TABLES */
+static const uint8_t ff_ac3_critical_band_size_tab[AC3_CRITICAL_BANDS]={
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3,
+ 3, 6, 6, 6, 6, 6, 6, 12, 12, 12, 12, 24, 24, 24, 24, 24
+};
+
static uint8_t band_start_tab[51];
static uint8_t bin_to_band_tab[253];
#endif