summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUng, Teng En <teng.en.ung@intel.com>2016-06-22 10:49:22 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2016-07-27 15:37:18 +0800
commit51ad826fcc0d2512f7ef74e807e4b8526663fc28 (patch)
treed0f8a9f3e05bd23eacc415fbe1171ff07bcda15d
parente5544460dcb4b325df42e343953e6d5b57f8f544 (diff)
Fix to use source and output regions size instead of the input output surfaces original size.
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=96739 Signed-off-by: Ung, Teng En <teng.en.ung@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com>
-rw-r--r--src/gen75_vpp_vebox.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c
index 9773c24..566f337 100644
--- a/src/gen75_vpp_vebox.c
+++ b/src/gen75_vpp_vebox.c
@@ -1379,11 +1379,11 @@ int hsw_veb_pre_format_convert(VADriverContextP ctx,
proc_ctx->format_convert_flags = 0;
- proc_ctx->width_input = obj_surf_input->orig_width;
- proc_ctx->height_input = obj_surf_input->orig_height;
- proc_ctx->width_output = obj_surf_output->orig_width;
- proc_ctx->height_output = obj_surf_output->orig_height;
-
+ proc_ctx->width_input = proc_ctx->pipeline_param->surface_region->width;
+ proc_ctx->height_input = proc_ctx->pipeline_param->surface_region->height;
+ proc_ctx->width_output = proc_ctx->pipeline_param->output_region->width;
+ proc_ctx->height_output = proc_ctx->pipeline_param->output_region->height;
+
/* only partial frame is not supported to be processed */
/*
assert(proc_ctx->width_input == proc_ctx->pipeline_param->surface_region->width);