From c1ea58e7704e37da3ee23898d443bce42d873690 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 29 May 2025 16:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A6=96=E5=B8=A7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B2=A1=E4=BC=A0=E5=85=A5?= =?UTF-8?q?=E9=A6=96=E5=B8=A7=EF=BC=8C=E5=88=99=E6=8F=90=E5=8F=96=E9=A6=96?= =?UTF-8?q?=E5=B8=A7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/video_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/video_utils.py b/utils/video_utils.py index 94a90d2..382966b 100644 --- a/utils/video_utils.py +++ b/utils/video_utils.py @@ -65,7 +65,7 @@ def _get_first_frame_bytes(video_bytes, output_path): temp_file.write(video_bytes) temp_file_path = temp_file.name # 获取临时文件路径 # 打开视频文件 - _get_first_frame(temp_file_path, output_path) + return _get_first_frame(temp_file_path, output_path) except Exception as e: logger.error(f"提取视频首帧时出错: {e}") return None