@@ -2577,7 +2577,7 @@ IA_ERRORCODE ia_core_coder_dec_main(VOID *temp_handle, WORD8 *inbuffer, WORD8 *o
25772577 WORD32 preroll_counter = 0 ;
25782578 WORD32 suitable_tracks = 1 ;
25792579 WORD32 num_samples_out ;
2580- WORD32 grp , channel , s , sig , cnt , elemIdx ;
2580+ WORD32 grp , channel , s , sig , elemIdx ;
25812581 WORD32 mhas_offset = 0 ;
25822582 WORD32 target_loudness ;
25832583 WORD32 loudness_norm_flag ;
@@ -3106,32 +3106,12 @@ IA_ERRORCODE ia_core_coder_dec_main(VOID *temp_handle, WORD8 *inbuffer, WORD8 *o
31063106 ia_core_coder_samples_sat ((WORD8 * )outbuffer + tot_out_bytes , num_samples_out , pcmsize ,
31073107 & pstr_dec_data -> ptr_binaural_output [0 ], out_ch_map ,
31083108 & mpegh_dec_handle -> delay_in_samples , out_bytes , * num_channel_out );
3109- {
3110- WORD32 payload_buffer_offeset = 0 ;
3111- WORD32 copy_bytes =
3112- pstr_dec_data -> str_frame_data .str_audio_specific_config .str_usac_config
3113- .str_usac_dec_config .usac_ext_gain_payload_len [preroll_counter ] *
3114- sizeof (WORD8 );
3115-
3116- pstr_asc -> str_usac_config .str_usac_dec_config .usac_ext_gain_payload_len [preroll_counter ] =
3117- pstr_dec_data -> str_frame_data .str_audio_specific_config .str_usac_config
3118- .str_usac_dec_config .usac_ext_gain_payload_len [preroll_counter ];
3119-
3120- for (cnt = 0 ; cnt < preroll_counter ; cnt ++ )
3121- {
3122- payload_buffer_offeset +=
3123- pstr_dec_data -> str_frame_data .str_audio_specific_config .str_usac_config
3124- .str_usac_dec_config .usac_ext_gain_payload_len [cnt ] *
3125- sizeof (WORD8 );
3126- }
3127-
3128- pstr_asc -> str_usac_config .str_usac_dec_config .preroll_bytes [preroll_counter ] = * out_bytes ;
3109+ pstr_asc -> str_usac_config .str_usac_dec_config .preroll_bytes [preroll_counter ] = * out_bytes ;
31293110
3130- preroll_counter ++ ;
3111+ preroll_counter ++ ;
31313112
3132- if (preroll_counter > (MAX_AUDIO_PREROLLS + 1 ))
3133- return IA_MPEGH_DEC_EXE_FATAL_UNSUPPORTED_NUM_PRE_ROLLS ;
3134- }
3113+ if (preroll_counter > (MAX_AUDIO_PREROLLS + 1 ))
3114+ return IA_MPEGH_DEC_EXE_FATAL_UNSUPPORTED_NUM_PRE_ROLLS ;
31353115
31363116 access_units ++ ;
31373117 preroll_units -- ;
0 commit comments