Skip to content

Commit 70e2a5a

Browse files
committed
Corrected Volume Unit
if volume ends with 'db' change it to 'dB', else ffmpeg may produce error in some cases.
1 parent 793d47e commit 70e2a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPVideoToolkit/AudioFormat.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public function setVolume($volume)
373373
throw new \InvalidArgumentException('Unrecognised volume value "'.$volume.'" set in \\PHPVideoToolkit\\'.get_class($this).'::setVolume. The value must be higher than or equal to 0.');
374374
}
375375

376-
$this->_format['audio_volume'] = $volume;
376+
$this->_format['audio_volume'] = str_replace('db', 'dB', $volume);
377377
return $this;
378378
}
379379

0 commit comments

Comments
 (0)