summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-11-06 13:38:13 +0000
committerLibravatar GitHub <noreply@github.com>2024-11-06 14:38:13 +0100
commitb84637801ae9e9cf330d91ce7e2e7734a7c6130c (patch)
treee7518f95e0a44506c24c298dd88c654c0a4bdae5 /vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go
parent[bugfix] sets the max value placeholders to MaxInt32 instead of MaxInt (#3517) (diff)
downloadgotosocial-b84637801ae9e9cf330d91ce7e2e7734a7c6130c.tar.xz
[chore] update go ffmpreg to v0.6.0 (#3515)
* pull in go-ffmpreg v0.6.0 * add code comment * grrr linter * set empty module name when calling ffmpeg / ffprobe
Diffstat (limited to 'vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go')
-rw-r--r--vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go
index 62ce2bc25..7b07d851d 100644
--- a/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go
+++ b/vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go
@@ -14,6 +14,11 @@ import (
// wazero.Runtime on module instantiation.
type Args struct {
+ // Program name, depending on the
+ // module being run this may or may
+ // not be necessary.
+ Name string
+
// Optional further module configuration function.
// (e.g. to mount filesystem dir, set env vars, etc).
Config func(wazero.ModuleConfig) wazero.ModuleConfig
@@ -39,7 +44,7 @@ func Run(
// Prefix arguments with module name.
cargs := make([]string, len(args.Args)+1)
- cargs[0] = module.Name()
+ cargs[0] = args.Name
copy(cargs[1:], args.Args)
// Prepare new module configuration.