1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 10:49:28 +02:00

Fix live invalid save replay duration

This commit is contained in:
Chocobozzz 2020-12-03 09:38:24 +01:00
parent 09c55770bc
commit 4a54a93941
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 6 additions and 4 deletions

View file

@ -164,7 +164,7 @@ async function getVideoFileBitrate (path: string, existingProbe?: ffmpeg.Ffprobe
async function getDurationFromVideoFile (path: string, existingProbe?: ffmpeg.FfprobeData) {
const metadata = await getMetadataFromFile(path, existingProbe)
return Math.floor(metadata.format.duration)
return Math.round(metadata.format.duration)
}
async function getVideoStreamFromFile (path: string, existingProbe?: ffmpeg.FfprobeData) {