Fixed a const qp for P frame bug.
authorZhou Chang <chang.zhou@intel.com>
Wed, 15 Jun 2011 02:10:48 +0000 (10:10 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 25 Aug 2011 12:28:59 +0000 (14:28 +0200)
src/gen6_mfc.c

index fd32e67..59e33de 100644 (file)
@@ -722,7 +722,7 @@ static int gen6_mfc_avc_pak_object_inter(VADriverContextP ctx, int x, int y, int
 
     OUT_BCS_BATCH(batch, (0xFFFF<<16) | (y << 8) | x);        /* Code Block Pattern for Y*/
     OUT_BCS_BATCH(batch, 0x000F000F);                         /* Code Block Pattern */    
-    OUT_BCS_BATCH(batch, (0 << 27) | (end_mb << 26) | 26);     /* Last MB */
+    OUT_BCS_BATCH(batch, (0 << 27) | (end_mb << 26) | qp);     /* Last MB */
 
     /*Stuff for Inter MB*/
     OUT_BCS_BATCH(batch, 0x0);