diff vp3.c @ 2692:fb8f26fc57eb libavcodec

remove permutation done to quant tables and then undone during idct move permutation from idct to unpack_vlcs
author michael
date Tue, 17 May 2005 09:18:49 +0000
parents 9cd85de24bcb
children 02925a3903b6
line wrap: on
line diff
--- a/vp3.c	Tue May 17 09:11:48 2005 +0000
+++ b/vp3.c	Tue May 17 09:18:49 2005 +0000
@@ -886,7 +886,7 @@
      * the dequantization phase */
     for (i = 1; i < 64; i++) {
 
-        j = zigzag_index[i];
+        j = i;
 
         s->intra_y_dequant[j] = s->coded_intra_y_dequant[i] * ac_scale_factor / 100;
         if (s->intra_y_dequant[j] < MIN_DEQUANT_VAL)
@@ -1659,7 +1659,7 @@
         if (!eob_run) {
             fragment->coeff_count += zero_run;
             if (fragment->coeff_count < 64)
-                fragment->coeffs[fragment->coeff_count++] = coeff;
+                fragment->coeffs[dezigzag_index[fragment->coeff_count++]] = coeff;
             debug_vlc(" fragment %d coeff = %d\n",
                 s->coded_fragment_list[i], fragment->coeffs[coeff_index]);
         } else {