ref: dc4f83bef59b66608b4274c229dedf21b3fa6ecb
parent: c4a95d16cf16574299a1800e2007ec3f02a7ae5a
author: Jean-Marc Valin <[email protected]>
date: Mon Aug 13 20:37:47 EDT 2012
Fixes a silly bug where only the left channel was used for depth estimation Result was that stereo files with silence on the left would result in an extremely low bitrate
--- a/celt/celt.c
+++ b/celt/celt.c
@@ -1470,7 +1470,7 @@
+QCONST16(.5f,DB_SHIFT)+SHL16(9-st->lsb_depth,DB_SHIFT)-SHL16(eMeans[i],6)
+MULT16_16(QCONST16(.0062,DB_SHIFT),(i+5)*(i+5));
follower[c*st->mode->nbEBands+i] = MAX16(follower[c*st->mode->nbEBands+i], noise_floor);
- maxDepth = MAX16(maxDepth, bandLogE[i]-noise_floor);
+ maxDepth = MAX16(maxDepth, bandLogE[c*st->mode->nbEBands+i]-noise_floor);
}
} while (++c<C);
if (C==2)