revid: fixed config check bug

This commit is contained in:
Saxon 2019-08-09 19:18:52 +09:30
parent 2470ce95ad
commit b41ae4bcd3
1 changed files with 0 additions and 4 deletions

View File

@ -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")