We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239b93b commit 92db33bCopy full SHA for 92db33b
video.go
@@ -138,11 +138,7 @@ func buildFFopts(opts VideoOptions, targetFile string) []string {
138
139
// MakeGIF takes a list of images (as frames) and converts them to a GIF.
140
func MakeGIF(opts VideoOptions) *exec.Cmd {
141
- targetFile := opts.Output.GIF
142
-
143
- if opts.Output.GIF == "" && opts.Output.WebM == "" && opts.Output.MP4 == "" {
144
- targetFile = "out.gif"
145
- } else if opts.Output.GIF == "" {
+ if opts.Output.GIF == "" {
146
return nil
147
}
148
@@ -152,7 +148,7 @@ func MakeGIF(opts VideoOptions) *exec.Cmd {
152
//nolint:gosec
153
149
return exec.Command(
154
150
"ffmpeg",
155
- buildFFopts(opts, targetFile)...,
151
+ buildFFopts(opts, opts.Output.GIF)...,
156
)
157
158
0 commit comments