Commit ebc0bc8e authored by alexc's avatar alexc

10l: aacsbr: Fix f_master[2] calculation when k2diff == -1.



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23660 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent fe30c381
...@@ -393,7 +393,7 @@ static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr, ...@@ -393,7 +393,7 @@ static int sbr_make_f_master(AACContext *ac, SpectralBandReplication *sbr,
k2diff = sbr->k[2] - sbr->k[0] - sbr->n_master * dk; k2diff = sbr->k[2] - sbr->k[0] - sbr->n_master * dk;
if (k2diff < 0) { if (k2diff < 0) {
sbr->f_master[1]--; sbr->f_master[1]--;
sbr->f_master[2]-= (k2diff < 1); sbr->f_master[2]-= (k2diff < -1);
} else if (k2diff) { } else if (k2diff) {
sbr->f_master[sbr->n_master]++; sbr->f_master[sbr->n_master]++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment