server/func/images: Do not pass file content to ffmpeg stdin
This commit is contained in:
parent
780b7dc6fd
commit
106dcc4135
1 changed files with 2 additions and 2 deletions
|
@ -277,10 +277,10 @@ class Image:
|
|||
proc = subprocess.Popen(
|
||||
cli,
|
||||
stdout=subprocess.PIPE,
|
||||
stdin=subprocess.PIPE,
|
||||
stdin=subprocess.DEVNULL,
|
||||
stderr=subprocess.PIPE,
|
||||
)
|
||||
out, err = proc.communicate(input=self.content)
|
||||
out, err = proc.communicate()
|
||||
if proc.returncode != 0:
|
||||
logger.warning(
|
||||
"Failed to execute ffmpeg command (cli=%r, err=%r)",
|
||||
|
|
Loading…
Reference in a new issue