mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +08:00
[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:
19
mpp/mpi.cpp
19
mpp/mpi.cpp
@@ -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},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user