[Libva] [Libva-intel-driver][PATCH] Use char *ptr instead of void *ptr
Xiang, Haihao
haihao.xiang at intel.com
Wed Sep 21 04:11:09 UTC 2016
The code performs arithmetic on void *. Although it works in gcc,
it is not legal in C
Signed-off-by: Xiang, Haihao <haihao.xiang at intel.com>
---
src/gen75_vpp_vebox.c | 2 +-
src/gen75_vpp_vebox.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index 020c7fd..a68564f 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -564,7 +564,7 @@ void set_std_table_9(struct intel_vebox_context *proc_ctx, unsigned int *p_table
void hsw_veb_iecp_std_table(VADriverContextP ctx, struct intel_vebox_context *proc_ctx)
{
- unsigned int *p_table = proc_ctx->iecp_state_table.ptr + 0 ;
+ unsigned int *p_table = (unsigned int *)proc_ctx->iecp_state_table.ptr;
if(!(proc_ctx->filters_mask & VPP_IECP_STD_STE)){
memset(p_table, 0, 29 * 4);
diff --git a/src/gen75_vpp_vebox.h b/src/gen75_vpp_vebox.h
index 31c5c4e..c693a1e 100644
--- a/src/gen75_vpp_vebox.h
+++ b/src/gen75_vpp_vebox.h
@@ -98,7 +98,7 @@ typedef struct veb_frame_store {
typedef struct veb_buffer {
dri_bo *bo;
- void * ptr;
+ char * ptr;
unsigned char valid;
} VEBBuffer;
--
1.9.1
More information about the Libva
mailing list