[Libva] [PATCH 1/2] h264: fix weighted prediction indicator (SNB).

Gwenole Beauchesne gb.devel at gmail.com
Tue Mar 13 11:54:24 PDT 2012


Implicit weight tables derivation (weighted_bipred_idc == 2) could
not be set. Only default weight tables were possible instead of
explicit weight tables provided by the codec layer.

https://bugs.freedesktop.org/show_bug.cgi?id=40820

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
---
 NEWS           |    1 +
 src/gen6_mfd.c |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/NEWS b/NEWS
index 1b4809a..7cefa20 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Copyright (C) 2009-2011 Intel Corporation
 Version 1.0.16 - DD.Feb.2012
 * Fix VC-1 bitplane buffer size (SNB, IVB)
 * Fix VC-1 motion vector modes for Ivy Bridge
+* Fix weighted prediction indicator for Sandy Bridge
 * Fix MFX_QM_STATE for H.264 flat scaling lists (IVB)
 * Fix and simplify AVC_REF_IDX_STATE setup (ILK, SNB, IVB)
 * Fix and simplify first macroblock bit offset calculation (ILK, SNB, IVB)
diff --git a/src/gen6_mfd.c b/src/gen6_mfd.c
index c47f11b..c6fe1d2 100644
--- a/src/gen6_mfd.c
+++ b/src/gen6_mfd.c
@@ -708,7 +708,7 @@ gen6_mfd_avc_slice_state(VADriverContextP ctx,
     } else {
         num_ref_idx_l0 = slice_param->num_ref_idx_l0_active_minus1 + 1;
         num_ref_idx_l1 = slice_param->num_ref_idx_l1_active_minus1 + 1;
-        weighted_pred_idc = (pic_param->pic_fields.bits.weighted_bipred_idc == 1);
+        weighted_pred_idc = pic_param->pic_fields.bits.weighted_bipred_idc;
     }
 
     first_mb_in_slice = slice_param->first_mb_in_slice << mbaff_picture;
-- 
1.7.5.4



More information about the Libva mailing list