diff --git a/RevidCLI.go b/RevidCLI.go index 36008020..cc480242 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -45,7 +45,7 @@ const ( packetizationPtr = 4 quantizationModePtr = 5 verbosityPtr = 6 - framesPerClipPrt = 7 + framesPerClipPtr = 7 rtmpUrlPtr = 8 bitratePtr = 9 outputFileNamePtr = 10 @@ -142,7 +142,7 @@ func main() { config.RtmpMethod = revid.LibRtmp } - switch *configFlags[packetisationPtr] { + switch *configFlags[packetizationPtr] { case "None": config.Packetization = revid.None case "Rtp": @@ -153,9 +153,9 @@ func main() { switch *configFlags[quantizationModePtr] { case "QuantizationOn": - config.Quantization = revid.QuantizationOn + config.QuantizationMode = revid.QuantizationOn case "QuantizationOff": - config.Quantization = revid.QuantizationOff + config.QuantizationMode = revid.QuantizationOff } switch *configFlags[verbosityPtr] { @@ -191,7 +191,7 @@ func main() { // If we're not running a netsender session then we run revid for the amount // of time the user defined or the default 2 days time.Sleep( time.Duration(*runDurationPtr) * time.Second ) - revid.Stop() + revidInst.Stop() } func netsenderInit() {