Skip to content

Commit

Permalink
CS
Browse files Browse the repository at this point in the history
  • Loading branch information
jygaulier committed Oct 8, 2024
1 parent cf4d7bc commit 0eb9252
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private function doVideo(string $format, string $extension, InputFileInterface $
$ffmpegOptions['timeout'] = $timeout;
}
if ($threads = $options['threads'] ?? null) {
if(!is_int($threads) || $threads < 1) {
if (!is_int($threads) || $threads < 1) {
throw new \InvalidArgumentException('Invalid threads count');
}
$ffmpegOptions['ffmpeg.threads'] = $threads;
Expand Down

0 comments on commit 0eb9252

Please sign in to comment.