#13 #24 Fix invalid duration due to difference in first N frames. Solution: read few frames and compute duration based on the last frame data.

This commit is contained in:
wapmorgan
2023-05-28 21:04:09 +03:00
parent cbbd6b306b
commit 534c3052d4
3 changed files with 16 additions and 5 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ class Mp3InfoConsoleRunner {
.':'.str_pad($time % 60, 2, 0, STR_PAD_LEFT);
else
return floor($time / 60)
.':'.str_pad($time % 60, 2, 0, STR_PAD_LEFT);
.':'.str_pad((int)$time % 60, 2, 0, STR_PAD_LEFT);
}
/**