Mercurial > libavcodec.hg
changeset 4954:1fd90978db25 libavcodec
Add bias instead of -32 or 0, as is done in g.722.1
author | ramiro |
---|---|
date | Wed, 09 May 2007 22:00:08 +0000 |
parents | a695b3cbfc4d |
children | bbe763044678 |
files | cook.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/cook.c Wed May 09 21:57:50 2007 +0000 +++ b/cook.c Wed May 09 22:00:08 2007 +0000 @@ -438,7 +438,7 @@ index=-1; for (i=0 ; i<q->total_subbands ; i++){ if (exp_index1[i] < 7) { - v = (-2*exp_index1[i]) - quant_index_table[i] - 32; + v = (-2*exp_index1[i]) - quant_index_table[i] + bias; if ( v >= max) { max = v; index = i; @@ -455,7 +455,7 @@ index=-1; for (i=0 ; i<q->total_subbands ; i++){ if(exp_index2[i] > 0){ - v = (-2*exp_index2[i])-quant_index_table[i]; + v = (-2*exp_index2[i])-quant_index_table[i]+bias; if ( v < min) { min = v; index = i;