summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2015-08-26 17:20:34 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2015-09-06 15:13:58 +0800
commit01d2e95a4b6fbf617e82832d58cead63b1c09a28 (patch)
treef79351e9231fc22585a5c024eb6d48ec372e1e1b
parent0987509ca02568effbd7f4a4ccd2da3c4dfc6ce5 (diff)
Clean up the duplicate extra two line of code
Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> (cherry picked from commit cec8f05596a4bf11070fffeec1b4c7e5b7d44323)
-rw-r--r--src/gen75_mfd.c3
-rwxr-xr-xsrc/gen7_mfd.c3
-rw-r--r--src/gen8_mfd.c3
3 files changed, 0 insertions, 9 deletions
diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c
index 08f599e..6d8ff82 100644
--- a/src/gen75_mfd.c
+++ b/src/gen75_mfd.c
@@ -1919,9 +1919,6 @@ gen75_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
assert(decode_state->pic_param && decode_state->pic_param->buffer);
pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
-
- assert(decode_state->pic_param && decode_state->pic_param->buffer);
- pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
BEGIN_BCS_BATCH(batch, 6);
diff --git a/src/gen7_mfd.c b/src/gen7_mfd.c
index 6042497..9cf4402 100755
--- a/src/gen7_mfd.c
+++ b/src/gen7_mfd.c
@@ -1654,9 +1654,6 @@ gen7_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
assert(decode_state->pic_param && decode_state->pic_param->buffer);
pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
-
- assert(decode_state->pic_param && decode_state->pic_param->buffer);
- pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
BEGIN_BCS_BATCH(batch, 6);
diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c
index f80e66b..2d650a3 100644
--- a/src/gen8_mfd.c
+++ b/src/gen8_mfd.c
@@ -1679,9 +1679,6 @@ gen8_mfd_vc1_pred_pipe_state(VADriverContextP ctx,
assert(decode_state->pic_param && decode_state->pic_param->buffer);
pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
-
- assert(decode_state->pic_param && decode_state->pic_param->buffer);
- pic_param = (VAPictureParameterBufferVC1 *)decode_state->pic_param->buffer;
intensitycomp_single = (pic_param->mv_fields.bits.mv_mode == VAMvModeIntensityCompensation);
BEGIN_BCS_BATCH(batch, 6);