From 3f138f087a02fcc88c0bec3b6d792daceca38576 Mon Sep 17 00:00:00 2001 From: Ari Koivula Date: Tue, 27 Sep 2016 22:25:11 +0300 Subject: [PATCH] Allow non-gop-length --period for lp-gop --- src/cfg.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cfg.c b/src/cfg.c index 36e04cb5..31161a92 100644 --- a/src/cfg.c +++ b/src/cfg.c @@ -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;