[FFmpeg-soc] [soc]: r4848 - als/alsdec.c

thilo.borgmann subversion at mplayerhq.hu
Fri Jul 31 01:41:59 CEST 2009


Author: thilo.borgmann
Date: Fri Jul 31 01:41:59 2009
New Revision: 4848

Log:
Corrected fixed indices for short-term prediction.

Modified:
   als/alsdec.c

Modified: als/alsdec.c
==============================================================================
--- als/alsdec.c	Fri Jul 31 01:34:06 2009	(r4847)
+++ als/alsdec.c	Fri Jul 31 01:41:59 2009	(r4848)
@@ -494,7 +494,7 @@ static int read_block_data(ALSDecContext
                     }
 
                     // read coefficients 20 - 128
-                    k_max = FFMIN(127, opt_order);
+                    k_max = FFMIN(128, opt_order);
                     for (k = 20; k < k_max; k++) {
                         offset       = k & 1;
                         rice_param   = 2;
@@ -503,7 +503,7 @@ static int read_block_data(ALSDecContext
                     }
 
                     // read coefficients 128 - opt_order
-                    for (k = 127; k < opt_order; k++) {
+                    for (k = 128; k < opt_order; k++) {
                         offset       = 0;
                         rice_param   = 1;
                         quant_index  = decode_rice(gb, rice_param) + offset;


More information about the FFmpeg-soc mailing list