mirror of https://bitbucket.org/ausocean/av.git
Fixing array indexing
This commit is contained in:
parent
748dad2a91
commit
2abcc6fb76
15
RevidCLI.go
15
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":
|
||||
|
|
Loading…
Reference in New Issue