Skip to content

Commit e49fe77

Browse files
committed
fix frame timecode
1 parent 1ab05d3 commit e49fe77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Converters/Video/MediaFrameConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function getTimecode(Media $media, ?MediaConversion $parent): int|floa
3737
$seconds = $source->duration / 1_000;
3838

3939
if ($this->timecode > $seconds) {
40-
return $seconds;
40+
return floor($seconds);
4141
}
4242

4343
return $this->timecode;

0 commit comments

Comments
 (0)