revid/revid.go: removed useless fmt.Sprintf call

This commit is contained in:
Saxon Nelson-Milton 2020-12-15 19:26:39 +10:30
parent aaafe66cc2
commit 27f5f6ca83
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ func (r *Revid) reset(c config.Config) error {
encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second)) encOptions = append(encOptions, mts.TimeBasedPSI(time.Duration(r.cfg.PSITime)*time.Second))
r.cfg.CBR = true r.cfg.CBR = true
default: default:
panic(fmt.Sprintf("unknown input codec for Raspivid, File, V4l or RTSP input", r.cfg.InputCodec)) panic("unknown input codec for Raspivid, File, V4l or RTSP input")
} }
case config.InputAudio: case config.InputAudio:
st = mts.EncodeAudio st = mts.EncodeAudio