diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-02-24 14:55:13 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-02-24 14:55:48 +0100 |
commit | d43dbfa0f2775dd5f9b2d24129e24d7cb67ad643 (patch) | |
tree | 09d1fba69fa98ee5b081bf2f1408fdce840bea83 /lib/private/Preview | |
parent | ebe731f01439d7a632c43a3994f2c0192e501ef0 (diff) | |
download | nextcloud-server-d43dbfa0f2775dd5f9b2d24129e24d7cb67ad643.tar.gz nextcloud-server-d43dbfa0f2775dd5f9b2d24129e24d7cb67ad643.zip |
Fix typing in OC\Preview\Movie
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Preview')
-rw-r--r-- | lib/private/Preview/Movie.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/private/Preview/Movie.php b/lib/private/Preview/Movie.php index 1777f36b220..781cbad1954 100644 --- a/lib/private/Preview/Movie.php +++ b/lib/private/Preview/Movie.php @@ -120,25 +120,18 @@ class Movie extends ProviderV2 { return $result; } - /** - * @param int $maxX - * @param int $maxY - * @param string $absPath - * @param int $second - * @return null|\OCP\IImage - */ - private function generateThumbNail($maxX, $maxY, $absPath, $second): ?IImage { + private function generateThumbNail(int $maxX, int $maxY, string $absPath, int $second): ?IImage { $tmpPath = \OC::$server->getTempManager()->getTemporaryFile(); $binaryType = substr(strrchr($this->binary, '/'), 1); if ($binaryType === 'avconv') { - $cmd = $this->binary . ' -y -ss ' . escapeshellarg($second) . + $cmd = $this->binary . ' -y -ss ' . escapeshellarg((string)$second) . ' -i ' . escapeshellarg($absPath) . ' -an -f mjpeg -vframes 1 -vsync 1 ' . escapeshellarg($tmpPath) . ' 2>&1'; } elseif ($binaryType === 'ffmpeg') { - $cmd = $this->binary . ' -y -ss ' . escapeshellarg($second) . + $cmd = $this->binary . ' -y -ss ' . escapeshellarg((string)$second) . ' -i ' . escapeshellarg($absPath) . ' -f mjpeg -vframes 1' . ' ' . escapeshellarg($tmpPath) . |