History

aacdec_usac: zero out alpha values for the current frame

Lynne committed 2 years ago

Commit 714596b1 parent c2d459c1 file · +4 −0Browse files

Unified · Split

libavcodec/aac/aacdec_usac.c+4−0
@@ -691,6 +691,10 @@ static int decode_usac_stereo_cplx(AACDecContext *ac, AACUsacStereo *us, · 690 unmodified lines
691 if (!indep_flag)691 if (!indep_flag)
692 delta_code_time = get_bits1(gb);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 /* TODO: shouldn't be needed */698 /* TODO: shouldn't be needed */
695 for (int g = 0; g < num_window_groups; g++) {699 for (int g = 0; g < num_window_groups; g++) {
696 for (int sfb = 0; sfb < cpe->max_sfb_ste; sfb += SFB_PER_PRED_BAND) {700 for (int sfb = 0; sfb < cpe->max_sfb_ste; sfb += SFB_PER_PRED_BAND) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t