fix: do not pass by environ to ffmpeg (#5871)

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2025-07-21 14:35:33 +02:00
committed by GitHub
parent eae4ca08da
commit 05bf2493a5
+1 -1
View File
@@ -11,7 +11,7 @@ import (
func ffmpegCommand(args []string) (string, error) {
cmd := exec.Command("ffmpeg", args...) // Constrain this to ffmpeg to permit security scanner to see that the command is safe.
cmd.Env = os.Environ()
cmd.Env = []string{}
out, err := cmd.CombinedOutput()
return string(out), err
}