Allow non-gop-length --period for lp-gop

This commit is contained in:
Ari Koivula 2016-09-27 22:25:11 +03:00
parent 16790c9f15
commit 3f138f087a

View file

@ -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;