diff options
author | Xiang, Haihao <haihao.xiang@intel.com> | 2016-07-13 16:41:31 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2016-07-22 14:41:20 +0800 |
commit | e5544460dcb4b325df42e343953e6d5b57f8f544 (patch) | |
tree | 17ecf62865b297f6725b54b6cc3a370d3d36617e /src/gen75_vpp_vebox.c | |
parent | b21b187c8146f7840bf176f94a3ad62a4c922add (diff) |
Fix the condition used in 'else if()'
This 'else if()' is used to check output surface format, not input surface format.
Tested-by: Xu, Guangxin <Guangxin.Xu@intel.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Reviewed-by: Sean V Kelley <sean.v.kelley@intel.com>
Diffstat (limited to 'src/gen75_vpp_vebox.c')
-rw-r--r-- | src/gen75_vpp_vebox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c index e124604..9773c24 100644 --- a/src/gen75_vpp_vebox.c +++ b/src/gen75_vpp_vebox.c @@ -1450,8 +1450,8 @@ int hsw_veb_pre_format_convert(VADriverContextP ctx, proc_ctx->format_convert_flags |= POST_FORMAT_CONVERT; } else if(obj_surf_output->fourcc == VA_FOURCC_AYUV || obj_surf_output->fourcc == VA_FOURCC_YUY2 || - obj_surf_input->fourcc == VA_FOURCC_NV12 || - obj_surf_input->fourcc == VA_FOURCC_P010){ + obj_surf_output->fourcc == VA_FOURCC_NV12 || + obj_surf_output->fourcc == VA_FOURCC_P010) { /* Nothing to do here */ } else { |