mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-23 18:14:06 +00:00
Allow non-gop-length --period for lp-gop
This commit is contained in:
parent
16790c9f15
commit
3f138f087a
|
@ -1045,11 +1045,11 @@ int kvz_config_validate(const kvz_config *const cfg)
|
|||
error = 1;
|
||||
}
|
||||
|
||||
if (cfg->gop_len &&
|
||||
cfg->intra_period &&
|
||||
cfg->intra_period % cfg->gop_len != 0) {
|
||||
if (cfg->gop_len && cfg->intra_period && !cfg->gop_lowdelay &&
|
||||
cfg->intra_period % cfg->gop_len != 0)
|
||||
{
|
||||
fprintf(stderr,
|
||||
"Input error: intra period (%d) not a multiple of gop length (%d)\n",
|
||||
"Input error: intra period (%d) not a multiple of B-gop length (%d)\n",
|
||||
cfg->intra_period,
|
||||
cfg->gop_len);
|
||||
error = 1;
|
||||
|
|
Loading…
Reference in a new issue