fix[utils]: adjust format range constraint

Change-Id: I12d57955d6ad84e063784e46893b1deec90785b6
Signed-off-by: xueman.ruan <xueman.ruan@rock-chips.com>
This commit is contained in:
xueman.ruan
2023-09-28 18:02:33 +08:00
committed by Herman Chen
parent 2c6f93d147
commit 22100022d7
4 changed files with 6 additions and 3 deletions

View File

@@ -208,10 +208,11 @@ RK_S32 mpi_enc_opt_f(void *ctx, const char *next)
cmd->format = format;
return 1;
}
mpp_err("invalid input format 0x%x\n", format);
}
}
mpp_err("invalid input format\n");
cmd->format = MPP_FMT_YUV420SP;
return 0;
}