mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-28 03:34:06 +00:00
Fixed type conversion error when parsing cu split termination.
This commit is contained in:
parent
0d361d5bc7
commit
a77eb5c874
|
@ -812,7 +812,12 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
else if OPT("cu-split-termination")
|
else if OPT("cu-split-termination")
|
||||||
parse_enum(value, cu_split_termination_names, cfg->cu_split_termination);
|
{
|
||||||
|
int8_t mode = KVZ_CU_SPLIT_TERMINATION_ZERO;
|
||||||
|
int result = parse_enum(value, cu_split_termination_names, &mode);
|
||||||
|
cfg->cu_split_termination = mode;
|
||||||
|
return result;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return 0;
|
return 0;
|
||||||
#undef OPT
|
#undef OPT
|
||||||
|
|
Loading…
Reference in a new issue