Commit bd9e0e29 authored by Alex Converse's avatar Alex Converse
Browse files

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

Originally committed as revision 23660 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 78ba1d39
......@@ -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;
if (k2diff < 0) {
sbr->f_master[1]--;
sbr->f_master[2]-= (k2diff < 1);
sbr->f_master[2]-= (k2diff < -1);
} else if (k2diff) {
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