From 2470ce95ad8a1905d089aedfe58147e8b3a6befa Mon Sep 17 00:00:00 2001 From: Saxon Milton Date: Fri, 9 Aug 2019 09:41:47 +0000 Subject: [PATCH] revid-cli: setting default InputCodec to codecutil.H264 --- cmd/revid-cli/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index ff53a176..c98513cc 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -108,7 +108,7 @@ func handleFlags() revid.Config { var ( cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") - inputCodecPtr = flag.String("InputCodec", "", "The codec of the input: H264, Mjpeg, PCM, ADPCM") + inputCodecPtr = flag.String("InputCodec", "H264", "The codec of the input: H264, Mjpeg, PCM, ADPCM") inputPtr = flag.String("Input", "", "The input type: Raspivid, File, v4l, Audio, RTSP") rtspURLPtr = flag.String("RTSPURL", "", "The URL for an RTSP server.") quantizePtr = flag.Bool("Quantize", false, "Quantize input (non-variable bitrate)") @@ -203,7 +203,6 @@ func handleFlags() revid.Config { cfg.InputCodec = codecutil.PCM case "ADPCM": cfg.InputCodec = codecutil.ADPCM - case "": default: log.Log(logger.Error, pkg+"bad input codec argument") }