VPP: refine code to resolve building warnings
authorLi, Xiaowei A <xiaowei.a.li@intel.com>
Wed, 31 Oct 2012 01:49:12 +0000 (09:49 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 31 Oct 2012 08:50:58 +0000 (16:50 +0800)
Signed-off-by: Li,Xiaowei A <xiaowei.a.li@intel.com>
src/i965_post_processing.c
src/i965_post_processing.h

index 0737699..d8ac804 100755 (executable)
@@ -1774,7 +1774,6 @@ pp_plx_load_save_plx_initialize(VADriverContextP ctx, struct i965_post_processin
     int width[3], height[3], pitch[3], offset[3];
     struct pp_inline_parameter *pp_inline_parameter = pp_context->pp_inline_parameter;
     struct pp_static_parameter *pp_static_parameter = pp_context->pp_static_parameter;
-    const int Y = 0;
 
     /* source surface */
     pp_set_media_rw_message_surface(ctx, pp_context, src_surface, 1, 0,
@@ -2995,6 +2994,8 @@ VAStatus pp_nv12_dn_initialize(VADriverContextP ctx, struct i965_post_processing
 
     pp_dn_context->dest_w = w;
     pp_dn_context->dest_h = h;
+    return VA_STATUS_SUCCESS;
 }
 
 static int
index ff00c32..e55d1f6 100755 (executable)
@@ -96,6 +96,8 @@ struct pp_dn_context
     int dest_h;
 };
 
+struct i965_post_processing_context;
 struct pp_module
 {
     struct i965_kernel kernel;