[Ffmpeg-cvslog] r7169 - trunk/libavcodec/vc1.c

kostya subversion
Sun Nov 26 05:53:36 CET 2006


Author: kostya
Date: Sun Nov 26 05:53:36 2006
New Revision: 7169

Modified:
   trunk/libavcodec/vc1.c

Log:
100l: Initialize dc_scale with current quantizer for adv I frames

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Sun Nov 26 05:53:36 2006
@@ -3783,10 +3783,6 @@
         break;
     }
 
-    /* Set DC scale - y and c use the same */
-    s->y_dc_scale = s->y_dc_scale_table[v->pq];
-    s->c_dc_scale = s->c_dc_scale_table[v->pq];
-
     //do frame decode
     s->mb_x = s->mb_y = 0;
     s->mb_intra = 1;
@@ -3820,6 +3816,9 @@
             GET_MQUANT();
 
             s->current_picture.qscale_table[mb_pos] = mquant;
+            /* Set DC scale - y and c use the same */
+            s->y_dc_scale = s->y_dc_scale_table[mquant];
+            s->c_dc_scale = s->c_dc_scale_table[mquant];
 
             for(k = 0; k < 6; k++) {
                 val = ((cbp >> (5 - k)) & 1);




More information about the ffmpeg-cvslog mailing list