diff --git a/src/FFMpeg/FFMpeg.php b/src/FFMpeg/FFMpeg.php index f8daf6d..eac4b97 100644 --- a/src/FFMpeg/FFMpeg.php +++ b/src/FFMpeg/FFMpeg.php @@ -62,13 +62,11 @@ class FFMpeg extends Binary * * @param int $time The time in second where to take the snapshot * @param string $output The pathfile where to write - * @param int $width The width of the image - * @param int $height The height of the image * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException * @throws Exception\LogicException */ - public function extractImage($time, $output, $width, $height) + public function extractImage($time, $output) { if ( ! $this->pathfile) { @@ -186,7 +184,7 @@ class FFMpeg extends Binary * @param Format\VideoFormat $format The output format * @param string $outputPathfile The pathfile where to write * @param int $threads The number of threads to use - * @return \FFMpeg\FFMpeg + * @return \FFMpeg\FFMpeg * @throws Exception\RuntimeException */ protected function encodeVideo(Format\VideoFormat $format, $outputPathfile, $threads) diff --git a/tests/src/FFMpeg/FFMpegTest.php b/tests/src/FFMpeg/FFMpegTest.php index eaacf4a..edadbc9 100644 --- a/tests/src/FFMpeg/FFMpegTest.php +++ b/tests/src/FFMpeg/FFMpegTest.php @@ -46,7 +46,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase $dest = __DIR__ . '/../../files/extract_Test.jpg'; $this->object->open(__DIR__ . '/../../files/Test.ogv'); - $this->object->extractImage(2, $dest, 200, 200); + $this->object->extractImage(2, $dest); $this->probe->probeFormat($dest); @@ -59,7 +59,7 @@ class FFMpegTest extends \PHPUnit_Framework_TestCase */ public function testExtractImageNoMovie() { - $this->object->extractImage(2, 'Path', 200, 200); + $this->object->extractImage(2, 'Path'); } /**