Mercurial > libavcodec.hg
changeset 11892:a0c269879276 libavcodec
10l: aacsbr: Fix f_master[2] calculation when k2diff == -1.
author | alexc |
---|---|
date | Sun, 20 Jun 2010 19:24:18 +0000 |
parents | 72441b6700d4 |
children | 5ee87f2c9bc8 |
files | aacsbr.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/aacsbr.c Sun Jun 20 17:28:52 2010 +0000 +++ b/aacsbr.c Sun Jun 20 19:24:18 2010 +0000 @@ -393,7 +393,7 @@ 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]++; }