From e61a87438e16bb709e7da2f4f21ffc59c218f6e5 Mon Sep 17 00:00:00 2001 From: Viktor Menchikov Date: Tue, 29 Dec 2020 13:22:49 +0500 Subject: [PATCH] Fiexd ExtraArgs feature map[string]string is replaced by map[string]interface{}. The map key is used as a flag. --- ffmpeg/options.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ffmpeg/options.go b/ffmpeg/options.go index 43918bb..323d4b3 100644 --- a/ffmpeg/options.go +++ b/ffmpeg/options.go @@ -97,9 +97,9 @@ func (opts Options) GetStrArguments() []string { } } - if vm, ok := value.(map[string]string); ok { + if vm, ok := value.(map[string]interface{}); ok { for k, v := range vm { - values = append(values, flag, fmt.Sprintf("%v:%v", k, v)) + values = append(values, k, fmt.Sprintf("%v", v)) } } @@ -111,4 +111,4 @@ func (opts Options) GetStrArguments() []string { } return values -} \ No newline at end of file +}