From: Li, Xiaowei A Date: Fri, 14 Dec 2012 02:05:43 +0000 (+0800) Subject: vc1: fix bitplane buffer size(HSW) X-Git-Tag: submit/upstream/20130321.072122~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9227acc9451b495516ba467b77702bd17aa11b79;p=profile%2Fivi%2Fvaapi-intel-driver.git vc1: fix bitplane buffer size(HSW) This fixes buffer overflow in the newly allocated Gen buffer that holds VC-1 bitplanes. Signed-off-by: Li,Xiaowei --- diff --git a/src/gen75_mfd.c b/src/gen75_mfd.c index 2b77f7b..2278a29 100644 --- a/src/gen75_mfd.c +++ b/src/gen75_mfd.c @@ -1807,7 +1807,7 @@ gen75_mfd_vc1_decode_init(VADriverContextP ctx, bo = dri_bo_alloc(i965->intel.bufmgr, "VC-1 Bitplane", - bitplane_width * bitplane_width, + bitplane_width * height_in_mbs, 0x1000); assert(bo); gen7_mfd_context->bitplane_read_buffer.bo = bo;