mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 01:02:39 +08:00
[mpi_dec_test]: get_frame until return MppFrame is NULL
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@931 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -163,6 +163,7 @@ int mpi_dec_test(MpiDecTestCmd *cmd)
|
||||
|
||||
msleep(50);
|
||||
|
||||
do {
|
||||
ret = mpi->decode_get_frame(ctx, &frame);
|
||||
if (MPP_OK != ret) {
|
||||
mpp_err("decode_get_frame failed ret %d\n", ret);
|
||||
@@ -179,7 +180,10 @@ int mpi_dec_test(MpiDecTestCmd *cmd)
|
||||
dump_mpp_frame_to_file(frame, fp_output);
|
||||
}
|
||||
mpp_frame_deinit(&frame);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
} while (1);
|
||||
}
|
||||
|
||||
ret = mpi->reset(ctx);
|
||||
|
Reference in New Issue
Block a user