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

kostya subversion
Fri Jul 21 05:58:49 CEST 2006


Author: kostya
Date: Fri Jul 21 05:58:48 2006
New Revision: 5806

Modified:
   trunk/libavcodec/vc1.c

Log:
Set correctly quantizer and transform mode when parsing frame header.


Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Fri Jul 21 05:58:48 2006
@@ -1329,7 +1329,7 @@
     if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
         v->pq = pquant_table[0][pqindex];
     else
-        v->pq = pquant_table[v->quantizer_mode-1][pqindex];
+        v->pq = pquant_table[1][pqindex];
 
     v->pquantizer = 1;
     if (v->quantizer_mode == QUANT_FRAME_IMPLICIT)
@@ -1435,6 +1435,9 @@
             {
                 v->ttfrm = ttfrm_to_tt[get_bits(gb, 2)];
             }
+        } else {
+            v->ttmbf = 1;
+            v->ttfrm = TT_8X8;
         }
         break;
     case B_TYPE:




More information about the ffmpeg-cvslog mailing list