Formatted code

This commit is contained in:
Scott 2019-12-03 14:55:08 +10:30
parent 48d36c2082
commit 565ba3079c
2 changed files with 2 additions and 2 deletions

View File

@ -202,7 +202,7 @@ func handleFlags() config.Config {
cfg.InputCodec = codecutil.PCM cfg.InputCodec = codecutil.PCM
case "ADPCM": case "ADPCM":
cfg.InputCodec = codecutil.ADPCM cfg.InputCodec = codecutil.ADPCM
case "MJPEG": case "MJPEG":
cfg.InputCodec = codecutil.MJPEG cfg.InputCodec = codecutil.MJPEG
default: default:
log.Log(logger.Error, pkg+"bad input codec argument") log.Log(logger.Error, pkg+"bad input codec argument")

View File

@ -121,7 +121,7 @@ func (w *Webcam) Start() error {
"-r", fmt.Sprint(w.cfg.FrameRate), "-r", fmt.Sprint(w.cfg.FrameRate),
"-b:v", fmt.Sprint(br), "-b:v", fmt.Sprint(br),
"-s", fmt.Sprintf("%dx%d", w.cfg.Width, w.cfg.Height), "-s", fmt.Sprintf("%dx%d", w.cfg.Width, w.cfg.Height),
} }
switch w.cfg.InputCodec { switch w.cfg.InputCodec {
default: default: