修复diffMs,和offset判断

This commit is contained in:
2025-02-08 10:12:51 +08:00
parent ba4aad0ae5
commit fcf1e28fbd
3 changed files with 3 additions and 11 deletions

View File

@ -1,7 +1,6 @@
package util
import (
"ZhenTuLocalPassiveAdapter/config"
"ZhenTuLocalPassiveAdapter/dto"
"bytes"
"fmt"
@ -142,11 +141,6 @@ func CheckFileCoverageAndConstructTask(fileList []dto.File, beginDt, endDt time.
OutputFile: os.TempDir() + "/" + task.TaskID + ".mp4",
}
if ffmpegTask.Offset > (config.Config.Record.Duration) {
log.Printf("分析FFMPEG任务失败:ID:【%s】,文件片段:【%s】,无法完整覆盖时间点【%s】", task.TaskID, fileList[len(fileList)-1].Name, endDt)
return nil, fmt.Errorf("无法完整覆盖时间点")
}
return ffmpegTask, nil
}