[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

@@ -155,7 +155,7 @@ int mpi_test()
mpp_log("decode_get_frame get info changed found\n");
// if work in external buffer mode re-commit buffer here
mpi->control(ctx, MPP_CODEC_SET_INFO_CHANGE_READY, NULL);
mpi->control(ctx, MPP_DEC_SET_INFO_CHANGE_READY, NULL);
} else
i++;
@@ -192,11 +192,8 @@ int mpi_test()
memset(&cfg, 0, sizeof(cfg));
ret = mpi->config(ctx, MPP_ENC_SETCFG, cfg);
if (MPP_OK != ret) {
mpp_err("mpi->config failed\n");
goto MPP_TEST_FAILED;
}
cmd = MPP_ENC_SET_CFG;
param = &cfg;
ret = mpi->control(ctx, cmd, param);
if (MPP_OK != ret) {
@@ -204,8 +201,6 @@ int mpi_test()
goto MPP_TEST_FAILED;
}
// interface with both input and output
for (i = 0; i < MPI_ENC_LOOP_COUNT; i++) {
mpp_frame_init(&enc_in);