{
char *name_buf = NULL;
int b_error = 0;
+ int errortype = X264_PARAM_BAD_VALUE;
int name_was_bool;
int value_was_null = !value;
int i;
OPT("opencl-device")
p->i_opencl_device = atoi( value );
else
- return X264_PARAM_BAD_NAME;
+ {
+ b_error = 1;
+ errortype = X264_PARAM_BAD_NAME;
+ }
#undef OPT
#undef OPT2
#undef atobool
free( name_buf );
b_error |= value_was_null && !name_was_bool;
- return b_error ? X264_PARAM_BAD_VALUE : 0;
+ return b_error ? errortype : 0;
}
/****************************************************************************