[test]: Add coding type detection to mpi_dec_test

Change-Id: Ie6353184dab453e479c4f61137f208276386367c
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2020-05-27 10:26:51 +08:00
parent 8d38d4b2f0
commit 3166d88321

View File

@@ -766,6 +766,7 @@ static RK_S32 mpi_dec_test_parse_options(int argc, char **argv, MpiDecTestCmd* c
strncpy(cmd->file_input, next, MAX_FILE_NAME_LENGTH); strncpy(cmd->file_input, next, MAX_FILE_NAME_LENGTH);
cmd->file_input[strlen(next)] = '\0'; cmd->file_input[strlen(next)] = '\0';
cmd->have_input = 1; cmd->have_input = 1;
name_to_coding_type(cmd->file_input, &cmd->type);
} else { } else {
mpp_err("input file is invalid\n"); mpp_err("input file is invalid\n");
goto PARSE_OPINIONS_OUT; goto PARSE_OPINIONS_OUT;