Fixing some more syntax errors

This commit is contained in:
Saxon1 2018-05-05 13:13:52 +09:30
parent 740e03c0d6
commit b2c7eced99
1 changed files with 9 additions and 9 deletions

View File

@ -531,29 +531,29 @@ func (r *revid) setupInputForRaspivid() error {
var quantizationFlag string
var quantizationValue string
var verticalFlipFlag string
var horizontalFlipFlag string
var horizontalFlipFlag string
switch r.config.QuantizationMode {
case QuantizationOn:
quantizationFlag := "-qp"
quantizationValue := r.config.Quantization
quantizationFlag = "-qp"
quantizationValue = r.config.Quantization
case QuantizationOff:
quantizationFlag := ""
quantizationValue := ""
quantizationFlag = ""
quantizationValue = ""
}
switch r.config.HorizontalFlip {
case Yes:
horizontalFlipFlag := "-hf"
horizontalFlipFlag = "-hf"
case No:
horizontalFlipFlag := ""
horizontalFlipFlag = ""
}
switch r.config.VerticalFlip {
case Yes:
verticalFlipFlag := "-vf"
verticalFlipFlag = "-vf"
case No:
verticalFlipFlag := ""
verticalFlipFlag = ""
}
r.cmd = exec.Command("raspivid",