Skip to content

Commit a64d57c

Browse files
committed
2 parents a413a2a + 5973ae4 commit a64d57c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPVideoToolkit/VideoFormat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ public function setVideoQuality($quality)
664664
}
665665

666666
// interpret quality into ffmpeg value
667-
$quality = 31 - round(($quality / 100) * 31);
667+
$quality = 32 - round(($quality * 30/99) + 1);
668668
if($quality > 31 || $quality < 1)
669669
{
670670
throw new Exception('Unrecognised quality "'.$quality.'" set in \\PHPVideoToolkit\\'.get_class($this).'::setQuality');

0 commit comments

Comments
 (0)