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