mirror of https://bitbucket.org/ausocean/av.git
revid-cli: initialising config.Output slice when no outputs are defined so that a default output can still be set
This commit is contained in:
parent
9b57306aed
commit
37850e8350
|
@ -184,6 +184,10 @@ func handleFlags() revid.Config {
|
|||
log.Log(logger.Error, pkg+"bad input codec argument")
|
||||
}
|
||||
|
||||
if len(outputs) == 0 {
|
||||
cfg.Outputs = make([]uint8, 1)
|
||||
}
|
||||
|
||||
for _, o := range outputs {
|
||||
switch o {
|
||||
case "File":
|
||||
|
|
Loading…
Reference in New Issue