summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/libfaad/syntax.c')
-rw-r--r--apps/codecs/libfaad/syntax.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/apps/codecs/libfaad/syntax.c b/apps/codecs/libfaad/syntax.c
index 545163e85b..4c7baab274 100644
--- a/apps/codecs/libfaad/syntax.c
+++ b/apps/codecs/libfaad/syntax.c
@@ -558,7 +558,7 @@ void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
558 558
559/* Table 4.4.4 and */ 559/* Table 4.4.4 and */
560/* Table 4.4.9 */ 560/* Table 4.4.9 */
561int16_t spec_data[1024] MEM_ALIGN_ATTR = {0}; 561int16_t spec_data[FRAME_LEN] MEM_ALIGN_ATTR = {0};
562element sce; 562element sce;
563static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld, 563static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld,
564 uint8_t channel, uint8_t *tag) 564 uint8_t channel, uint8_t *tag)
@@ -603,8 +603,9 @@ static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld,
603} 603}
604 604
605/* Table 4.4.5 */ 605/* Table 4.4.5 */
606int16_t spec_data1[1024] IBSS_ATTR MEM_ALIGN_ATTR; 606
607int16_t spec_data2[1024] IBSS_ATTR MEM_ALIGN_ATTR; 607int16_t spec_data1[FRAME_LEN] IBSS_ATTR MEM_ALIGN_ATTR;
608int16_t spec_data2[FRAME_LEN] IBSS_ATTR MEM_ALIGN_ATTR;
608element cpe; 609element cpe;
609static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld, 610static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld,
610 uint8_t channels, uint8_t *tag) 611 uint8_t channels, uint8_t *tag)
@@ -884,7 +885,7 @@ static uint8_t coupling_channel_element(NeAACDecHandle hDecoder, bitfile *ld)
884 885
885 element el_empty = {0}; 886 element el_empty = {0};
886 ic_stream ics_empty = {0}; 887 ic_stream ics_empty = {0};
887 static int16_t sh_data[1024]; 888 static int16_t sh_data[FRAME_LEN];
888 889
889 c = faad_getbits(ld, LEN_TAG 890 c = faad_getbits(ld, LEN_TAG
890 DEBUGVAR(1,900,"coupling_channel_element(): element_instance_tag")); 891 DEBUGVAR(1,900,"coupling_channel_element(): element_instance_tag"));
@@ -1028,7 +1029,8 @@ static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc
1028 if (!hDecoder->sbr[sbr_ele]) 1029 if (!hDecoder->sbr[sbr_ele])
1029 { 1030 {
1030 hDecoder->sbr[sbr_ele] = sbrDecodeInit(hDecoder->frameLength, 1031 hDecoder->sbr[sbr_ele] = sbrDecodeInit(hDecoder->frameLength,
1031 hDecoder->element_id[sbr_ele], 2*get_sample_rate(hDecoder->sf_index), 1032 hDecoder->element_id[sbr_ele], sbr_ele,
1033 2*get_sample_rate(hDecoder->sf_index),
1032 hDecoder->downSampledSBR 1034 hDecoder->downSampledSBR
1033#ifdef DRM 1035#ifdef DRM
1034 , 0 1036 , 0
@@ -1170,8 +1172,8 @@ static void gain_control_data(bitfile *ld, ic_stream *ics)
1170#endif 1172#endif
1171 1173
1172#ifdef SCALABLE_DEC 1174#ifdef SCALABLE_DEC
1173int16_t spec_data1[1024] MEM_ALIGN_ATTR; 1175int16_t spec_data1[FRAME_LEN] MEM_ALIGN_ATTR;
1174int16_t spec_data2[1024] MEM_ALIGN_ATTR; 1176int16_t spec_data2[FRAME_LEN] MEM_ALIGN_ATTR;
1175/* Table 4.4.13 ASME */ 1177/* Table 4.4.13 ASME */
1176void aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, 1178void aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
1177 bitfile *ld, program_config *pce, drc_info *drc) 1179 bitfile *ld, program_config *pce, drc_info *drc)