We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edf87d9 commit eebdbeaCopy full SHA for eebdbea
src/FFMpeg/Format/ProgressListener/AbstractProgressListener.php
@@ -179,6 +179,12 @@ private function parseProgress($progress)
179
180
if ($this->lastOutput !== null) {
181
$delta = $currentTime - $this->lastOutput;
182
+
183
+ // Check the type of the currentSize variable and convert it to an integer if needed.
184
+ if(!is_numeric($currentSize)) {
185
+ $currentSize = (int)$currentSize;
186
+ }
187
188
$deltaSize = $currentSize - $this->currentSize;
189
$rate = $deltaSize * $delta;
190
if ($rate > 0) {
0 commit comments