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

kostya subversion
Mon Jan 29 15:23:00 CET 2007


Author: kostya
Date: Mon Jan 29 15:23:00 2007
New Revision: 7758

Modified:
   trunk/libavcodec/vc1.c

Log:
Fix BI-frames decoding for Adv. profile

Modified: trunk/libavcodec/vc1.c
==============================================================================
--- trunk/libavcodec/vc1.c	(original)
+++ trunk/libavcodec/vc1.c	Mon Jan 29 15:23:00 2007
@@ -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;
     }




More information about the ffmpeg-cvslog mailing list