summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2013-03-15 15:39:35 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2013-03-15 15:45:28 +0800
commit825c76ee544cd35cd459d86068f5301cd5319108 (patch)
tree11079ff0de2dd2e19a6313254405962664b67c9d
parent522190f9918206608b06bbc0bdc9271df94aa8bc (diff)
downloadvaapi-intel-driver-825c76ee544cd35cd459d86068f5301cd5319108.tar.gz
vaapi-intel-driver-825c76ee544cd35cd459d86068f5301cd5319108.tar.bz2
vaapi-intel-driver-825c76ee544cd35cd459d86068f5301cd5319108.zip
Fix the size to malloc()submit/upstream/20130321.072122
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rwxr-xr-xsrc/i965_drv_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i965_drv_video.c b/src/i965_drv_video.c
index ea124e1..380e4de 100755
--- a/src/i965_drv_video.c
+++ b/src/i965_drv_video.c
@@ -2783,7 +2783,7 @@ VAStatus i965_DeriveImage(VADriverContextP ctx,
dri_bo_reference(obj_image->bo);
if (image->num_palette_entries > 0 && image->entry_bytes > 0) {
- obj_image->palette = malloc(image->num_palette_entries * sizeof(obj_image->palette));
+ obj_image->palette = malloc(image->num_palette_entries * sizeof(*obj_image->palette));
if (!obj_image->palette) {
va_status = VA_STATUS_ERROR_ALLOCATION_FAILED;
goto error;