From 2abcc6fb764e2ab6d2ba7253bfbd2bffc14ac6f4 Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Thu, 19 Apr 2018 17:49:36 +0930 Subject: [PATCH] Fixing array indexing --- RevidCLI.go | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/RevidCLI.go b/RevidCLI.go index 45dec3f9..36008020 100644 --- a/RevidCLI.go +++ b/RevidCLI.go @@ -30,8 +30,9 @@ package main import ( "flag" "strconv" - "bitbucket.org/ausocean/av/revid" + "time" + "bitbucket.org/ausocean/av/revid" "bitbucket.org/ausocean/IoT/pi/netsender" ) @@ -41,7 +42,7 @@ const ( inputCodecPtr = 1 outputPtr = 2 rtmpMethodPtr = 3 - packetisationPtr = 4 + packetizationPtr = 4 quantizationModePtr = 5 verbosityPtr = 6 framesPerClipPrt = 7 @@ -62,7 +63,7 @@ const ( const ( sleepTime = 2 * 43200 defaultRunDuration = 2 * 43200 - noOfConfigconfigFlags = 20 + noOfConfigconfigFlags = 21 revidStopTime = 5 ) @@ -143,14 +144,14 @@ func main() { switch *configFlags[packetisationPtr] { case "None": - config.Packetisation = revid.None + config.Packetization = revid.None case "Rtp": - config.Packetisation = revid.Rtp + config.Packetization = revid.Rtp case "Flv": - config.Packetisation = revid.Flv + config.Packetization = revid.Flv } - switch *configFlags[quantisationModePtr] { + switch *configFlags[quantizationModePtr] { case "QuantizationOn": config.Quantization = revid.QuantizationOn case "QuantizationOff":