summaryrefslogtreecommitdiff
path: root/src/gen6_mfd.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-03-13 16:46:37 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-03-13 17:29:57 +0100
commit7c6754f6b315374b74ee52a816456784c0b1c880 (patch)
tree729de48ad84bb23d6ac3377bf90c5c28e0179dc9 /src/gen6_mfd.c
parent9b7863bf49dcf8bf1de9b45ce4e986dfd1cca418 (diff)
downloadlibva-intel-driver-7c6754f6b315374b74ee52a816456784c0b1c880.tar.gz
libva-intel-driver-7c6754f6b315374b74ee52a816456784c0b1c880.tar.bz2
libva-intel-driver-7c6754f6b315374b74ee52a816456784c0b1c880.zip
h264: fix weighted prediction indicator (SNB).
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@intel.com>
Diffstat (limited to 'src/gen6_mfd.c')
-rw-r--r--src/gen6_mfd.c2
1 files changed, 1 insertions, 1 deletions
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;