Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit e61a874

Browse files
Fiexd ExtraArgs feature
map[string]string is replaced by map[string]interface{}. The map key is used as a flag.
1 parent aa6374b commit e61a874

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ffmpeg/options.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ func (opts Options) GetStrArguments() []string {
9797
}
9898
}
9999

100-
if vm, ok := value.(map[string]string); ok {
100+
if vm, ok := value.(map[string]interface{}); ok {
101101
for k, v := range vm {
102-
values = append(values, flag, fmt.Sprintf("%v:%v", k, v))
102+
values = append(values, k, fmt.Sprintf("%v", v))
103103
}
104104
}
105105

@@ -111,4 +111,4 @@ func (opts Options) GetStrArguments() []string {
111111
}
112112

113113
return values
114-
}
114+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy