[mpi]: fix compile error on linux

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@541 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-01-21 03:13:16 +00:00
parent 40f3486470
commit b13f60ba24
2 changed files with 4 additions and 2 deletions

View File

@@ -85,6 +85,8 @@ typedef enum {
MPP_ENC_GETCFG,
MPP_ENC_SETFORMAT,
MPP_ENC_SETIDRFRAME,
MPI_CMD_BUTT,
} MpiCmd;

View File

@@ -254,7 +254,7 @@ RK_S32 VpuApi::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
return 0;
}
MpiCmd mpicmd = -1;
MpiCmd mpicmd = MPI_CMD_BUTT;
switch (cmd) {
case VPU_API_SET_VPUMEM_CONTEXT: {
mpicmd = MPP_DEC_SET_EXT_BUF_GROUP;
@@ -278,7 +278,7 @@ RK_S32 VpuApi::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
}
RK_S32 ret = -1;
if (mpicmd >= 0)
if (mpicmd < MPI_CMD_BUTT)
ret = mpi->control(mpp_ctx, (MpiCmd)mpicmd, (MppParam)param);
mpp_log_f("ok\n");