diff options
author | 2024-11-06 13:38:13 +0000 | |
---|---|---|
committer | 2024-11-06 14:38:13 +0100 | |
commit | b84637801ae9e9cf330d91ce7e2e7734a7c6130c (patch) | |
tree | e7518f95e0a44506c24c298dd88c654c0a4bdae5 /internal/media/ffmpeg.go | |
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 'internal/media/ffmpeg.go')
-rw-r--r-- | internal/media/ffmpeg.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/media/ffmpeg.go b/internal/media/ffmpeg.go index 1d7b01905..c225d4378 100644 --- a/internal/media/ffmpeg.go +++ b/internal/media/ffmpeg.go @@ -181,6 +181,10 @@ func ffmpeg(ctx context.Context, inpath string, outpath string, args ...string) } fscfg = fscfg.WithFSMount(shared, path.Dir(inpath)) + // Set anonymous module name. + modcfg = modcfg.WithName("") + + // Update with prepared fs config. return modcfg.WithFSConfig(fscfg) }, }) @@ -247,6 +251,10 @@ func ffprobe(ctx context.Context, filepath string) (*result, error) { } fscfg = fscfg.WithFSMount(in, path.Dir(filepath)) + // Set anonymous module name. + modcfg = modcfg.WithName("") + + // Update with prepared fs config. return modcfg.WithFSConfig(fscfg) }, }) |