mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-04 08:46:24 +08:00
[mpp_dec]: Add MPP_DEC_GET_CFG cmd implement
Add MPP_DEC_GET_CFG call before setup decoder config in mpi_dec_test. Change-Id: I1ed8c2be44be9de0e4b1364a1401a81a9ecfd6e1 Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -630,6 +630,13 @@ int dec_decode(MpiDecTestCmd *cmd)
|
||||
|
||||
mpp_dec_cfg_init(&cfg);
|
||||
|
||||
/* get default config from decoder context */
|
||||
ret = mpi->control(ctx, MPP_DEC_GET_CFG, cfg);
|
||||
if (ret) {
|
||||
mpp_err("%p failed to get decoder cfg ret %d\n", ctx, ret);
|
||||
goto MPP_TEST_OUT;
|
||||
}
|
||||
|
||||
/*
|
||||
* split_parse is to enable mpp internal frame spliter when the input
|
||||
* packet is not aplited into frames.
|
||||
|
Reference in New Issue
Block a user