summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/specrec.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libfaad/specrec.c')
-rw-r--r--apps/codecs/libfaad/specrec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/codecs/libfaad/specrec.c b/apps/codecs/libfaad/specrec.c
index a452fbd90e..6d74c77562 100644
--- a/apps/codecs/libfaad/specrec.c
+++ b/apps/codecs/libfaad/specrec.c
@@ -409,7 +409,7 @@ uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics)
409 } 409 }
410} 410}
411 411
412/* iquant() * 412/* iquant() */
413/* output = sign(input)*abs(input)^(4/3) */ 413/* output = sign(input)*abs(input)^(4/3) */
414/**/ 414/**/
415static INLINE real_t iquant(int16_t q, const real_t *tab, uint8_t *error) 415static INLINE real_t iquant(int16_t q, const real_t *tab, uint8_t *error)
@@ -543,6 +543,7 @@ static uint8_t quant_to_spec(NeAACDecHandle hDecoder,
543 }; 543 };
544 const real_t *tab = iq_table; 544 const real_t *tab = iq_table;
545 545
546 (void)frame_len;
546 uint8_t g, sfb, win; 547 uint8_t g, sfb, win;
547 uint16_t width, bin, k, gindex, wa, wb; 548 uint16_t width, bin, k, gindex, wa, wb;
548 uint8_t error = 0; /* Init error flag */ 549 uint8_t error = 0; /* Init error flag */
@@ -856,7 +857,7 @@ uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics,
856 element *sce, int16_t *spec_data) 857 element *sce, int16_t *spec_data)
857{ 858{
858 uint8_t retval, output_channels; 859 uint8_t retval, output_channels;
859 ALIGN real_t spec_coef[1024]; 860 ALIGN static real_t spec_coef[1024];
860 861
861#ifdef PROFILE 862#ifdef PROFILE
862 int64_t count = faad_get_ts(); 863 int64_t count = faad_get_ts();
@@ -1048,8 +1049,8 @@ uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_st
1048 element *cpe, int16_t *spec_data1, int16_t *spec_data2) 1049 element *cpe, int16_t *spec_data1, int16_t *spec_data2)
1049{ 1050{
1050 uint8_t retval; 1051 uint8_t retval;
1051 ALIGN real_t spec_coef1[1024]; 1052 ALIGN static real_t spec_coef1[1024];
1052 ALIGN real_t spec_coef2[1024]; 1053 ALIGN static real_t spec_coef2[1024];
1053 1054
1054#ifdef PROFILE 1055#ifdef PROFILE
1055 int64_t count = faad_get_ts(); 1056 int64_t count = faad_get_ts();