aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/ffprobe-utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/helpers/ffprobe-utils.ts b/server/helpers/ffprobe-utils.ts
index 1cf397767..4dea6283c 100644
--- a/server/helpers/ffprobe-utils.ts
+++ b/server/helpers/ffprobe-utils.ts
@@ -164,7 +164,7 @@ async function getVideoFileBitrate (path: string, existingProbe?: ffmpeg.Ffprobe
164async function getDurationFromVideoFile (path: string, existingProbe?: ffmpeg.FfprobeData) { 164async function getDurationFromVideoFile (path: string, existingProbe?: ffmpeg.FfprobeData) {
165 const metadata = await getMetadataFromFile(path, existingProbe) 165 const metadata = await getMetadataFromFile(path, existingProbe)
166 166
167 return Math.floor(metadata.format.duration) 167 return Math.round(metadata.format.duration)
168} 168}
169 169
170async function getVideoStreamFromFile (path: string, existingProbe?: ffmpeg.FfprobeData) { 170async function getVideoStreamFromFile (path: string, existingProbe?: ffmpeg.FfprobeData) {