aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorShyam Sunder2022-01-16 11:07:46 -0500
committerShyam Sunder2022-01-16 11:07:46 -0500
commit106dcc41356fdf7671a3b2a98a5fe3023c0e7af9 (patch)
tree205d810c251ff9efbf9cd51c7d68948646d9b8a7 /server
parent780b7dc6fd1830244a6236905a6e8ce9afcfb993 (diff)
server/func/images: Do not pass file content to ffmpeg stdin
Diffstat (limited to 'server')
-rw-r--r--server/szurubooru/func/images.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/szurubooru/func/images.py b/server/szurubooru/func/images.py
index de41222..4d4011f 100644
--- a/server/szurubooru/func/images.py
+++ b/server/szurubooru/func/images.py
@@ -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)",

© 2015 - 2026 Jakob L. Kreuze