diff --git a/src/FFMpeg/Media/Frame.php b/src/FFMpeg/Media/Frame.php index 0544113..21499f9 100644 --- a/src/FFMpeg/Media/Frame.php +++ b/src/FFMpeg/Media/Frame.php @@ -115,8 +115,7 @@ class Frame extends AbstractMediaType $commands = array_merge($commands, $filter->apply($this)); } - // without output filename when return binary string - if(!$returnBase64) { + if (!$returnBase64) { $commands = array_merge($commands, array($pathfile)); } diff --git a/tests/Unit/Media/FrameTest.php b/tests/Unit/Media/FrameTest.php index 51ee2cd..4c96527 100644 --- a/tests/Unit/Media/FrameTest.php +++ b/tests/Unit/Media/FrameTest.php @@ -61,7 +61,9 @@ class FrameTest extends AbstractMediaTestCase $pathfile = '/target/destination'; - array_push($commands, $pathfile); + if (!$base64) { + array_push($commands, $pathfile); + } $driver->expects($this->once()) ->method('command')