changeset 3506:e0996476198b libavcodec

Set correctly quantizer and transform mode when parsing frame header.
author kostya
date Fri, 21 Jul 2006 03:58:48 +0000
parents d8dabe4ca9be
children 44e0a262d500
files vc1.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Wed Jul 19 23:51:11 2006 +0000
+++ b/vc1.c	Fri Jul 21 03:58:48 2006 +0000
@@ -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: