Showing the changes to libavcodec/aac (1 of 1 file). Show all
Unified · Split
| @@ -691,6 +691,10 @@ static int decode_usac_stereo_cplx(AACDecContext *ac, AACUsacStereo *us, · 690 unmodified lines | ||
| 691 | 691 | if (!indep_flag) |
| 692 | 692 | delta_code_time = get_bits1(gb); |
| 693 | 693 | |
| 694 | + /* Alpha values must be zeroed out if pred_used is 0. */ | |
| 695 | + memset(us->alpha_q_re, 0, sizeof(us->alpha_q_re)); | |
| 696 | + memset(us->alpha_q_im, 0, sizeof(us->alpha_q_im)); | |
| 697 | + | |
| 694 | 698 | /* TODO: shouldn't be needed */ |
| 695 | 699 | for (int g = 0; g < num_window_groups; g++) { |
| 696 | 700 | for (int sfb = 0; sfb < cpe->max_sfb_ste; sfb += SFB_PER_PRED_BAND) { |