changeset 4433:8187c306ffcd libavcodec

Fix BI-frames decoding for Adv. profile
author kostya
date Mon, 29 Jan 2007 14:23:00 +0000
parents a848b652f0ac
children cab2986ffc0b
files vc1.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/vc1.c	Mon Jan 29 14:07:12 2007 +0000
+++ b/vc1.c	Mon Jan 29 14:23:00 2007 +0000
@@ -1834,7 +1834,7 @@
     }
     /* DC Syntax */
     v->s.dc_table_index = get_bits(gb, 1);
-    if (v->s.pict_type == I_TYPE && v->dquant) {
+    if ((v->s.pict_type == I_TYPE || v->s.pict_type == BI_TYPE) && v->dquant) {
         av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n");
         vop_dquant_decoding(v);
     }
@@ -4083,9 +4083,12 @@
             vc1_decode_p_blocks(v);
         break;
     case B_TYPE:
-        if(v->bi_type)
-            vc1_decode_i_blocks(v);
-        else
+        if(v->bi_type){
+            if(v->profile == PROFILE_ADVANCED)
+                vc1_decode_i_blocks_adv(v);
+            else
+                vc1_decode_i_blocks(v);
+        }else
             vc1_decode_b_blocks(v);
         break;
     }