diff --git a/mpp/codec/dec/h265/test/CMakeLists.txt b/mpp/codec/dec/h265/test/CMakeLists.txt index 2008031d..a77b325d 100644 --- a/mpp/codec/dec/h265/test/CMakeLists.txt +++ b/mpp/codec/dec/h265/test/CMakeLists.txt @@ -20,6 +20,7 @@ if(H265D_TEST) else() target_link_libraries(h265d_parser_test mpp_shared utils) endif() + set_target_properties(h265d_parser_test PROPERTIES FOLDER "mpp/test") endif() diff --git a/mpp/codec/dec/h265/test/h265d_parser_test.c b/mpp/codec/dec/h265/test/h265d_parser_test.c index b6585a10..ffc5c149 100644 --- a/mpp/codec/dec/h265/test/h265d_parser_test.c +++ b/mpp/codec/dec/h265/test/h265d_parser_test.c @@ -66,10 +66,10 @@ typedef enum VPU_API_DEMO_RET { typedef struct parserDemoCmdContext { + char input_file[200]; + char output_file[200]; RK_U32 width; RK_U32 height; - RK_U8 input_file[200]; - RK_U8 output_file[200]; RK_U8 have_input; RK_U8 have_output; RK_U8 disable_debug; diff --git a/mpp/mpi.cpp b/mpp/mpi.cpp index abcfbdc0..390123c6 100644 --- a/mpp/mpi.cpp +++ b/mpp/mpi.cpp @@ -216,8 +216,8 @@ static MPP_RET mpi_enqueue(MppCtx ctx, MppPortType type, MppTask task) if (ret) return ret; - if (type >= MPP_PORT_BUTT || NULL == task) { - mpp_err_f("invalid input type %d task %p\n", type, task); + if (type >= MPP_PORT_BUTT || task < 0) { + mpp_err_f("invalid input type %d task %d\n", type, task); return MPP_ERR_UNKNOW; }