mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user