<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 13, 2016 at 1:41 AM, Xiang, Haihao <span dir="ltr"><<a href="mailto:haihao.xiang@intel.com" target="_blank">haihao.xiang@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This 'else if()' is used to check output surface format, not input surface format.<br></blockquote><div><br></div><div>Good catch, lgtm.<br><br></div><div>Sean<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Tested-by: Xu, Guangxin <<a href="mailto:Guangxin.Xu@intel.com">Guangxin.Xu@intel.com</a>><br>
Signed-off-by: Xiang, Haihao <<a href="mailto:haihao.xiang@intel.com">haihao.xiang@intel.com</a>><br>
---<br>
 src/gen75_vpp_vebox.c | 4 ++--<br>
 1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/gen75_vpp_vebox.c b/src/gen75_vpp_vebox.c<br>
index e124604..9773c24 100644<br>
--- a/src/gen75_vpp_vebox.c<br>
+++ b/src/gen75_vpp_vebox.c<br>
@@ -1450,8 +1450,8 @@ int hsw_veb_pre_format_convert(VADriverContextP ctx,<br>
         proc_ctx->format_convert_flags |= POST_FORMAT_CONVERT;<br>
     } else if(obj_surf_output->fourcc ==  VA_FOURCC_AYUV ||<br>
               obj_surf_output->fourcc ==  VA_FOURCC_YUY2 ||<br>
-                obj_surf_input->fourcc ==  VA_FOURCC_NV12 ||<br>
-                obj_surf_input->fourcc ==  VA_FOURCC_P010){<br>
+              obj_surf_output->fourcc ==  VA_FOURCC_NV12 ||<br>
+              obj_surf_output->fourcc ==  VA_FOURCC_P010) {<br>
<br>
               /* Nothing to do here */<br>
      } else {<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.8.3<br>
<br>
_______________________________________________<br>
Libva mailing list<br>
<a href="mailto:Libva@lists.freedesktop.org">Libva@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/libva" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/libva</a><br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Sean V. Kelley <<a href="mailto:sean.v.kelley@intel.com" target="_blank">sean.v.kelley@intel.com</a>><br>Open Source Technology Center / SSG<br>Intel Corp.<br></div>
</div></div>