From c6a6518248718f3ec07eae56e709096300bff6cf Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Sun, 13 Apr 2025 14:57:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E9=9A=8F=E6=9C=BA=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ffmpeg.go b/util/ffmpeg.go index 46f82fd..53a2536 100644 --- a/util/ffmpeg.go +++ b/util/ffmpeg.go @@ -71,7 +71,7 @@ func runFfmpegForMultipleFile1(ctx context.Context, task *dto.FfmpegTask) bool { wg.Add(1) go func(file *dto.File) { defer wg.Done() - tmpFile := path.Join(os.TempDir(), file.Name+".ts") + tmpFile := path.Join(os.TempDir(), file.Name+strconv.Itoa(rand.Int())+".ts") result, err := convertMp4ToTs(subCtx, *file, tmpFile) if err != nil { log.Printf("转码出错: %v", err)