From 37a26b8c31f92c29881cb1176de53517a7013131 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Thu, 22 Dec 2022 10:49:28 -0800 Subject: [PATCH] write: cast video duration to float before round --- lib/Db/TimelineWrite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Db/TimelineWrite.php b/lib/Db/TimelineWrite.php index ec42f7b0..db456e3a 100644 --- a/lib/Db/TimelineWrite.php +++ b/lib/Db/TimelineWrite.php @@ -123,7 +123,7 @@ class TimelineWrite // Video parameters $videoDuration = 0; if ($isvideo) { - $videoDuration = round($exif['Duration'] ?? $exif['TrackDuration'] ?? 0); + $videoDuration = round((float) ($exif['Duration'] ?? $exif['TrackDuration'] ?? 0)); } // Clean up EXIF to keep only useful metadata