aacdec_usac: zero out alpha values for the current frame

release/7.1
Lynne 8 months ago
parent c2d459cb51
commit 714596bcbf
No known key found for this signature in database
GPG Key ID: A2FEA5F03F034464
  1. 4
      libavcodec/aac/aacdec_usac.c

@ -691,6 +691,10 @@ static int decode_usac_stereo_cplx(AACDecContext *ac, AACUsacStereo *us,
if (!indep_flag)
delta_code_time = get_bits1(gb);
/* Alpha values must be zeroed out if pred_used is 0. */
memset(us->alpha_q_re, 0, sizeof(us->alpha_q_re));
memset(us->alpha_q_im, 0, sizeof(us->alpha_q_im));
/* TODO: shouldn't be needed */
for (int g = 0; g < num_window_groups; g++) {
for (int sfb = 0; sfb < cpe->max_sfb_ste; sfb += SFB_PER_PRED_BAND) {

Loading…
Cancel
Save