diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2015-01-09 12:05:31 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2015-01-09 14:51:01 +0800 |
commit | a687810f14899f47b85b7f5fbc1f2a9e6ddc966e (patch) | |
tree | 74db985a84fc8becf00afc6c1ca43e48e74db9d8 /src/gen75_vpp_vebox.c | |
parent | 757c510a1f32b14eff60d4fce0d42bf9b91952a7 (diff) |
Fix segmentation fault caused by 4711da5
The corresponding pointer is NULL if VAProcFilterSkinToneEnhancement
isn't enabled in the pipeline
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
(cherry picked from commit 8596cb68e85a5708e05b9b49510ca52dd3d0a468)
Diffstat (limited to 'src/gen75_vpp_vebox.c')
-rw-r--r-- | src/gen75_vpp_vebox.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c index a7b7cc6..f63f0d4 100644 --- a/src/gen75_vpp_vebox.c +++ b/src/gen75_vpp_vebox.c @@ -565,13 +565,14 @@ 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 ; - int stde_factor = 0; //default value - VAProcFilterParameterBuffer * std_param = (VAProcFilterParameterBuffer *) proc_ctx->filter_iecp_std; - stde_factor = std_param->value; if(!(proc_ctx->filters_mask & VPP_IECP_STD_STE)){ memset(p_table, 0, 29 * 4); }else{ + int stde_factor = 0; //default value + VAProcFilterParameterBuffer * std_param = (VAProcFilterParameterBuffer *) proc_ctx->filter_iecp_std; + stde_factor = std_param->value; + //DWord 0 *p_table ++ = ( 154 << 24 | // V_Mid 110 << 16 | // U_Mid |