mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-24 10:34:05 +00:00
Fix --tiles to have the correct number of tiles.
The tiles_width_count etc. actually mean "count minus one".
This commit is contained in:
parent
49ea2d7b7f
commit
a350eb3a1e
|
@ -589,8 +589,8 @@ int kvz_config_parse(kvz_config *cfg, const char *name, const char *value)
|
||||||
// Free split arrays incase they have already been set by another parameter.
|
// Free split arrays incase they have already been set by another parameter.
|
||||||
FREE_POINTER(cfg->tiles_width_split);
|
FREE_POINTER(cfg->tiles_width_split);
|
||||||
FREE_POINTER(cfg->tiles_height_split);
|
FREE_POINTER(cfg->tiles_height_split);
|
||||||
cfg->tiles_width_count = width;
|
cfg->tiles_width_count = width - 1;
|
||||||
cfg->tiles_height_count = height;
|
cfg->tiles_height_count = height - 1;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
else if OPT("wpp")
|
else if OPT("wpp")
|
||||||
|
|
Loading…
Reference in a new issue