OSDN Git Service
(root)
/
android-x86
/
hardware-intel-common-vaapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5b3dea
)
vc1: fix bitplane buffer size(HSW)
author
Li, Xiaowei A
<xiaowei.a.li@intel.com>
Fri, 14 Dec 2012 02:05:43 +0000
(10:05 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Fri, 14 Dec 2012 03:23:09 +0000
(11:23 +0800)
This fixes buffer overflow in the newly allocated Gen buffer
that holds VC-1 bitplanes.
Signed-off-by: Li,Xiaowei <xiaowei.a.li@intel.com>
src/gen75_mfd.c
patch
|
blob
|
history
diff --git
a/src/gen75_mfd.c
b/src/gen75_mfd.c
index
2b77f7b
..
2278a29
100644
(file)
--- 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;