diff --git a/revid/config.go b/revid/config.go index b0ba2bc4..6f682028 100644 --- a/revid/config.go +++ b/revid/config.go @@ -148,11 +148,9 @@ func (c *Config) Validate(r *Revid) error { // Configuration really needs to be rethought here. if c.Quantize && c.Quantization == 0 { c.Quantization = defaultQuantization - } else { - c.Bitrate = defaultBitrate } - if (c.Bitrate > 0 && c.Quantization > 0) || (c.Bitrate == 0 && c.Quantization == 0) { + if (c.Bitrate > 0 && c.Quantize) || (c.Bitrate == 0 && !c.Quantize) { return errors.New("bad bitrate and quantization combination for H264 input") }