From e5544460dcb4b325df42e343953e6d5b57f8f544 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Wed, 13 Jul 2016 16:41:31 +0800 Subject: 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 Signed-off-by: Xiang, Haihao Reviewed-by: Sean V Kelley --- src/gen75_vpp_vebox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gen75_vpp_vebox.c') 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 { -- cgit v1.2.3