diff options
| author | 2024-11-06 13:38:13 +0000 | |
|---|---|---|
| committer | 2024-11-06 14:38:13 +0100 | |
| commit | b84637801ae9e9cf330d91ce7e2e7734a7c6130c (patch) | |
| tree | e7518f95e0a44506c24c298dd88c654c0a4bdae5 /vendor/codeberg.org/gruf/go-ffmpreg/wasm | |
| parent | [bugfix] sets the max value placeholders to MaxInt32 instead of MaxInt (#3517) (diff) | |
| download | gotosocial-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')
| -rw-r--r-- | vendor/codeberg.org/gruf/go-ffmpreg/wasm/run.go | 7 | 
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.  | 
