Skip to content
5 changes: 5 additions & 0 deletions app/oapv_app_enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,11 @@ static int check_conf(oapve_cdesc_t *cdesc, args_var_t *vars)
{
int i;
for(i = 0; i < cdesc->max_num_frms; i++) {
// ensure frame width multiple of 2 in case of 422 format
if ((vars->input_csp == 2) && (cdesc->param[i].w & 0x1)) {
logerr("%d-th frame's width should be a multiple of 2 for '--input-csp 2'\n", i);
return -1;
}
if(vars->hash && strlen(vars->fname_rec) == 0) {
logerr("cannot use frame hash without reconstructed picture option!\n");
return -1;
Expand Down