diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index f8532fc0..59b31be6 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -202,7 +202,7 @@ func handleFlags() config.Config { cfg.InputCodec = codecutil.PCM case "ADPCM": cfg.InputCodec = codecutil.ADPCM - case "MJPEG": + case "MJPEG": cfg.InputCodec = codecutil.MJPEG default: log.Log(logger.Error, pkg+"bad input codec argument") diff --git a/device/webcam/webcam.go b/device/webcam/webcam.go index a987f913..0ac08751 100644 --- a/device/webcam/webcam.go +++ b/device/webcam/webcam.go @@ -121,7 +121,7 @@ func (w *Webcam) Start() error { "-r", fmt.Sprint(w.cfg.FrameRate), "-b:v", fmt.Sprint(br), "-s", fmt.Sprintf("%dx%d", w.cfg.Width, w.cfg.Height), - } + } switch w.cfg.InputCodec { default: