[FFmpeg-cvslog] r8957 - trunk/libavcodec/cook.c
ramiro
subversion
Thu May 10 00:00:08 CEST 2007
Author: ramiro
Date: Thu May 10 00:00:08 2007
New Revision: 8957
Log:
Add bias instead of -32 or 0, as is done in g.722.1
Modified:
trunk/libavcodec/cook.c
Modified: trunk/libavcodec/cook.c
==============================================================================
--- trunk/libavcodec/cook.c (original)
+++ trunk/libavcodec/cook.c Thu May 10 00:00:08 2007
@@ -438,7 +438,7 @@ static void categorize(COOKContext *q, i
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, i
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;
More information about the ffmpeg-cvslog
mailing list