changeset 2478:6744ea5ff950 libavcodec

more accurate dequant of near zero coefficients
author michael
date Mon, 31 Jan 2005 04:06:47 +0000
parents 7b65742a88ac
children dfdb6bf4b90f
files mpegaudiodec.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegaudiodec.c	Mon Jan 31 03:14:22 2005 +0000
+++ b/mpegaudiodec.c	Mon Jan 31 04:06:47 2005 +0000
@@ -230,11 +230,10 @@
     e = FRAC_BITS - e;
 #if FRAC_BITS <= 15    
     if (e > 31)
-        e = 31;
 #else
     if (e > 63)
-        e = 63;
 #endif
+        return 0;
     m = table_4_3_value[value];
 #if FRAC_BITS <= 15    
     m = (m * scale_factor_mult3[exponent & 3]);