fixing some more errors

This commit is contained in:
Saxon1 2018-04-19 17:46:26 +09:30
parent 2b025b82aa
commit 748dad2a91
1 changed files with 16 additions and 16 deletions

View File

@ -113,55 +113,55 @@ func main() {
switch *configFlags[inputPtr] { switch *configFlags[inputPtr] {
case "Raspivid": case "Raspivid":
config.Input = Raspivid config.Input = revid.Raspivid
case "Rtp": case "Rtp":
config.Input = Rtp config.Input = revid.Rtp
case "File": case "File":
config.Input = File config.Input = revid.File
} }
switch *configFlags[inputCodecPtr] { switch *configFlags[inputCodecPtr] {
case "H264Codec": case "H264Codec":
config.InputCodec = H264Codec config.InputCodec = revid.H264Codec
} }
switch *configFlags[outputPtr] { switch *configFlags[outputPtr] {
case "File": case "File":
config.Output = File config.Output = revid.File
case "Http": case "Http":
config.Output = Http config.Output = revid.Http
case "Rtmp": case "Rtmp":
config.Output = Rtmp config.Output = revid.Rtmp
} }
switch *configFlags[rtmpMethodPtr] { switch *configFlags[rtmpMethodPtr] {
case "Ffmpeg": case "Ffmpeg":
config.RtmpMethod = Ffmpeg config.RtmpMethod = revid.Ffmpeg
case "LibRtmp": case "LibRtmp":
config.RtmpMethod = LibRtmp config.RtmpMethod = revid.LibRtmp
} }
switch *configFlags[packetisationPtr] { switch *configFlags[packetisationPtr] {
case "None": case "None":
config.Packetisation = None config.Packetisation = revid.None
case "Rtp": case "Rtp":
config.Packetisation = Rtp config.Packetisation = revid.Rtp
case "Flv": case "Flv":
config.Packetisation = Flv config.Packetisation = revid.Flv
} }
switch *configFlags[quantisationModePtr] { switch *configFlags[quantisationModePtr] {
case "QuantizationOn": case "QuantizationOn":
config.Quantization = QuantizationOn config.Quantization = revid.QuantizationOn
case "QuantizationOff": case "QuantizationOff":
config.Quantization = QuantizationOff config.Quantization = revid.QuantizationOff
} }
switch *configFlags[verbosityPtr] { switch *configFlags[verbosityPtr] {
case "No": case "No":
config.Verbosity = No config.Verbosity = revid.No
case "Yes": case "Yes":
config.Verbosity = Yes config.Verbosity = revid.Yes
} }
config.FramesPerClip = *configFlags[framesPerClipPtr] config.FramesPerClip = *configFlags[framesPerClipPtr]