mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-24 17:40:21 +08:00
[mpi_dec_test]: fix warning on Linux
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@924 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -27,7 +27,6 @@
|
||||
#include "mpp_mem.h"
|
||||
#include "mpp_env.h"
|
||||
#include "mpp_time.h"
|
||||
#include "mpp_common.h"
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
@@ -271,7 +270,7 @@ static RK_S32 mpi_dec_test_parse_options(int argc, char **argv, MpiDecTestCmd* c
|
||||
switch (*opt) {
|
||||
case 'i':
|
||||
if (next) {
|
||||
snprintf(cmd->file_input, MAX_FILE_NAME_LENGTH, next);
|
||||
strncpy(cmd->file_input, next, MAX_FILE_NAME_LENGTH);
|
||||
cmd->file_input[strlen(next)] = '\0';
|
||||
cmd->have_input = 1;
|
||||
} else {
|
||||
@@ -281,7 +280,7 @@ static RK_S32 mpi_dec_test_parse_options(int argc, char **argv, MpiDecTestCmd* c
|
||||
break;
|
||||
case 'o':
|
||||
if (next) {
|
||||
snprintf(cmd->file_output, MAX_FILE_NAME_LENGTH, next);
|
||||
strncpy(cmd->file_output, next, MAX_FILE_NAME_LENGTH);
|
||||
cmd->file_output[strlen(next)] = '\0';
|
||||
cmd->have_output = 1;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user