Commit 448a0da

benny-dou <60535774+benny-dou@users.noreply.github.com>
2025-11-23 16:56:07
fix(h264): correct ffmpeg h264 command prefix
1 parent ed82163
Changed files (1)
src
others
src/others/ffmpeg.py
@@ -176,7 +176,7 @@ async def ffmpeg_h264(client: Client, message: Message, **kwargs):
         return
 
     media_info = await parse_media_info(fpath)
-    if media_info["video_codec"] == "h264" and not equal_prefix(message.content, prefix=f"{PREFIX.FFMPEG_CUT} force"):
+    if media_info["video_codec"] == "h264" and not equal_prefix(message.content, prefix=f"{PREFIX.FFMPEG_H264} force"):
         await modify_progress(text=f"⚠️该视频已经是H264编码, 无需转换\n使用 `{PREFIX.FFMPEG_H264} force` 强制进行转换", force_update=True, **kwargs)
         return