aacpsy: use a different metric for the spread of a band
[ffmpeg.git] / libavcodec / aacpsy.c
index 78232d4..b16f6b9 100644 (file)
@@ -787,7 +787,7 @@ static void psy_3gpp_analyze_channel(FFPsyContext *ctx, int channel,
 
             psy_band->threshold = band->thr;
             psy_band->energy    = band->energy;
-            psy_band->spread    = spread_en[w+g];
+            psy_band->spread    = band->active_lines * 2.0f / band_sizes[g];
         }
     }