From b41ae4bcd3e8b217ee86f1f37cd9d1f419e518de Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 9 Aug 2019 19:18:52 +0930 Subject: [PATCH] revid: fixed config check bug --- revid/config.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/revid/config.go b/revid/config.go index a995d238..82e06115 100644 --- a/revid/config.go +++ b/revid/config.go @@ -283,10 +283,6 @@ func (c *Config) Validate(r *Revid) error { c.Quantization = defaultQuantization } - if (c.Bitrate > 0 && c.Quantize) || (c.Bitrate == 0 && !c.Quantize) { - return errors.New("bad bitrate and quantization combination for H264 input") - } - case codecutil.MJPEG: if c.Quantization > 0 || c.Bitrate == 0 { return errors.New("bad bitrate or quantization for mjpeg input")