[h265d]: remove warning on Linux and move h265d_parser_test to mpp/test directory

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@917 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-06-15 08:17:59 +00:00
parent dad9a72f52
commit 4a763f62d4
3 changed files with 5 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ if(H265D_TEST)
else() else()
target_link_libraries(h265d_parser_test mpp_shared utils) target_link_libraries(h265d_parser_test mpp_shared utils)
endif() endif()
set_target_properties(h265d_parser_test PROPERTIES FOLDER "mpp/test")
endif() endif()

View File

@@ -66,10 +66,10 @@ typedef enum VPU_API_DEMO_RET {
typedef struct parserDemoCmdContext { typedef struct parserDemoCmdContext {
char input_file[200];
char output_file[200];
RK_U32 width; RK_U32 width;
RK_U32 height; RK_U32 height;
RK_U8 input_file[200];
RK_U8 output_file[200];
RK_U8 have_input; RK_U8 have_input;
RK_U8 have_output; RK_U8 have_output;
RK_U8 disable_debug; RK_U8 disable_debug;

View File

@@ -216,8 +216,8 @@ static MPP_RET mpi_enqueue(MppCtx ctx, MppPortType type, MppTask task)
if (ret) if (ret)
return ret; return ret;
if (type >= MPP_PORT_BUTT || NULL == task) { if (type >= MPP_PORT_BUTT || task < 0) {
mpp_err_f("invalid input type %d task %p\n", type, task); mpp_err_f("invalid input type %d task %d\n", type, task);
return MPP_ERR_UNKNOW; return MPP_ERR_UNKNOW;
} }