@@ -2577,7 +2577,7 @@ IA_ERRORCODE ia_core_coder_dec_main(VOID *temp_handle, WORD8 *inbuffer, WORD8 *o
2577
2577
WORD32 preroll_counter = 0 ;
2578
2578
WORD32 suitable_tracks = 1 ;
2579
2579
WORD32 num_samples_out ;
2580
- WORD32 grp , channel , s , sig , cnt , elemIdx ;
2580
+ WORD32 grp , channel , s , sig , elemIdx ;
2581
2581
WORD32 mhas_offset = 0 ;
2582
2582
WORD32 target_loudness ;
2583
2583
WORD32 loudness_norm_flag ;
@@ -3106,32 +3106,12 @@ IA_ERRORCODE ia_core_coder_dec_main(VOID *temp_handle, WORD8 *inbuffer, WORD8 *o
3106
3106
ia_core_coder_samples_sat ((WORD8 * )outbuffer + tot_out_bytes , num_samples_out , pcmsize ,
3107
3107
& pstr_dec_data -> ptr_binaural_output [0 ], out_ch_map ,
3108
3108
& 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 ;
3129
3110
3130
- preroll_counter ++ ;
3111
+ preroll_counter ++ ;
3131
3112
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 ;
3135
3115
3136
3116
access_units ++ ;
3137
3117
preroll_units -- ;
0 commit comments