Revision bd9e0e29

View differences:

libavcodec/aacsbr.c
393 393
        k2diff = sbr->k[2] - sbr->k[0] - sbr->n_master * dk;
394 394
        if (k2diff < 0) {
395 395
            sbr->f_master[1]--;
396
            sbr->f_master[2]-= (k2diff < 1);
396
            sbr->f_master[2]-= (k2diff < -1);
397 397
        } else if (k2diff) {
398 398
            sbr->f_master[sbr->n_master]++;
399 399
        }

Also available in: Unified diff