[mpp_enc]: fix crash in vpu_api_legacy.cpp

[mpi]: use new control macro system

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1050 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-07-20 07:54:31 +00:00
parent 7c00f5b2a6
commit 1a2551ec3e
11 changed files with 232 additions and 126 deletions

View File

@@ -57,24 +57,6 @@ static MPP_RET _check_mpp_ctx(MpiImpl *p, const char *caller)
return MPP_OK;
}
static MPP_RET mpi_config(MppCtx ctx, MpiCmd cmd, MppEncConfig cfg)
{
MPP_RET ret = MPP_NOK;
MpiImpl *p = (MpiImpl *)ctx;
mpi_dbg_func("enter ctx %p cfg %p\n", ctx, cfg);
do {
ret = check_mpp_ctx(p);
if (ret)
break;
ret = p->ctx->config(cmd, cfg); // configure parameter set
} while (0);
mpi_dbg_func("leave ret %d\n", ret);
return ret;
}
static MPP_RET mpi_decode(MppCtx ctx, MppPacket packet, MppFrame *frame)
{
MPP_RET ret = MPP_NOK;
@@ -351,7 +333,6 @@ static MppApi mpp_api = {
mpi_enqueue,
mpi_reset,
mpi_control,
mpi_config,
{0},
};