fixing some more errors

This commit is contained in:
Saxon1 2018-04-19 17:54:44 +09:30
parent 2abcc6fb76
commit c01e10901d
1 changed files with 5 additions and 5 deletions

View File

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