cmd/revid-cli: use sensible default for encoding option

This commit is contained in:
Dan Kortschak 2019-01-05 10:33:32 +10:30
parent 250da4232a
commit b46e267983
1 changed files with 1 additions and 2 deletions

View File

@ -209,13 +209,12 @@ func handleFlags() revid.Config {
}
switch *packetizationPtr {
case "None":
case "", "None":
cfg.Packetization = revid.None
case "Mpegts":
cfg.Packetization = revid.Mpegts
case "Flv":
cfg.Packetization = revid.Flv
case "":
default:
log.Log(logger.Error, pkg+"bad packetization argument")
}