mirror of
https://github.com/facefusion/facefusion.git
synced 2026-11-12 05:19:57 +01:00
fix video bomb in image format
This commit is contained in:
1 parent
0d9c79da6c
commit
d7cfb6ba95
1 file changed
+1
@@ -382,6 +382,7 @@ def sanitize_audio(file : BinaryIO, audio_path : str, security_strategy : ApiSec
|
||||
def sanitize_image(file : BinaryIO, image_path : str) -> bool:
|
||||
commands = ffmpeg_builder.chain(
|
||||
ffmpeg_builder.set_input('pipe:0'),
|
||||
ffmpeg_builder.select_media_stream('0:v:0'),
|
||||
ffmpeg_builder.deep_copy_image(),
|
||||
ffmpeg_builder.strip_metadata(),
|
||||
ffmpeg_builder.force_output(image_path)
|
||||
|
||||
Reference in new issue
Block a user