From 2151cda3d3a0d7c96cd19f9b89c18d30a4b612ef Mon Sep 17 00:00:00 2001 From: "Zhao, Halley" Date: Wed, 15 Jan 2014 13:21:46 +0800 Subject: Fix vp8 partition offset set error Signed-off-by: Zhong Li --- src/gen8_mfd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gen8_mfd.c') diff --git a/src/gen8_mfd.c b/src/gen8_mfd.c index ff38c41..cd10187 100644 --- a/src/gen8_mfd.c +++ b/src/gen8_mfd.c @@ -2998,7 +2998,8 @@ gen8_mfd_vp8_bsd_object(VADriverContextP ctx, OUT_BCS_BATCH(batch, partition_size_0); OUT_BCS_BATCH(batch, offset); - offset += partition_size_0; + //partion sizes in bytes are present after the above first partition when there are more than one token partition + offset += (partition_size_0 + 3 * (slice_param->num_of_partitions - 2)); for (i = 1; i < 9; i++) { if (i < slice_param->num_of_partitions) { OUT_BCS_BATCH(batch, slice_param->partition_size[i]); -- cgit v1.2.3