This should be ti

This commit is contained in:
Saxon1 2018-05-05 13:15:45 +09:30
parent b2c7eced99
commit a144ff8df7
1 changed files with 5 additions and 4 deletions

View File

@ -120,7 +120,8 @@ func main() {
{"Quantization", "Desired quantization value"}, {"Quantization", "Desired quantization value"},
{"Timeout", "Http timeout in seconds"}, {"Timeout", "Http timeout in seconds"},
{"IntraRefreshPeriod", "The IntraRefreshPeriod i.e. how many keyframes we send"}, {"IntraRefreshPeriod", "The IntraRefreshPeriod i.e. how many keyframes we send"},
{"Flip", "Flip video"}, {"VerticalFlip", "Flip video vertically"},
{"HorizontalFlip", "Flip video horizontally"}
} }
// Create the configFlags based on the flagNames array // Create the configFlags based on the flagNames array
@ -214,9 +215,9 @@ func main() {
switch *configFlags[horizontalFlipPtr] { switch *configFlags[horizontalFlipPtr] {
case "No": case "No":
config.Flip = revid.No config.HorizontalFlip = revid.No
case "Yes": case "Yes":
config.Flip = revid.Yes config.HorizontalFlip = revid.Yes
case "": case "":
default: default:
fmt.Println("Bad horizontal flip option!") fmt.Println("Bad horizontal flip option!")
@ -224,7 +225,7 @@ func main() {
switch *configFlags[verticalFlipPtr] { switch *configFlags[verticalFlipPtr] {
case "No": case "No":
config.HorizontalFlip = revid.No config.VerticalFlip = revid.No
case "Yes": case "Yes":
config.VerticalFlip = revid.Yes config.VerticalFlip = revid.Yes
case "": case "":