From 565ba3079cbbceb6cd4c18d5496db78a1dfb3f83 Mon Sep 17 00:00:00 2001 From: Scott Date: Tue, 3 Dec 2019 14:55:08 +1030 Subject: [PATCH] Formatted code --- cmd/revid-cli/main.go | 2 +- device/webcam/webcam.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: