mirror of https://bitbucket.org/ausocean/av.git
Formatted code
This commit is contained in:
parent
48d36c2082
commit
565ba3079c
|
@ -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")
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue