mirror of https://bitbucket.org/ausocean/av.git
revid: fixed config check bug
This commit is contained in:
parent
2470ce95ad
commit
b41ae4bcd3
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue