diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2007-05-09 22:00:08 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2007-05-09 22:00:08 +0000 |
commit | a5cb1f13ba2b78e4cb9e82b033d658bb59126d51 (patch) | |
tree | da9795787deab00ee664f664689519ea6cedee6b | |
parent | 39938968e8e8a7bf1f554aae1c0a0726eb4d4865 (diff) | |
download | ffmpeg-a5cb1f13ba2b78e4cb9e82b033d658bb59126d51.tar.gz |
Add bias instead of -32 or 0, as is done in g.722.1
Originally committed as revision 8957 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/cook.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/cook.c b/libavcodec/cook.c index 5235d8d588..0493dcc62f 100644 --- a/libavcodec/cook.c +++ b/libavcodec/cook.c @@ -438,7 +438,7 @@ static void categorize(COOKContext *q, int* quant_index_table, 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 @@ static void categorize(COOKContext *q, int* quant_index_table, 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; |