diff --git a/src/FFMpeg/Media/Concat.php b/src/FFMpeg/Media/Concat.php index 9671a9a..97f5e1e 100644 --- a/src/FFMpeg/Media/Concat.php +++ b/src/FFMpeg/Media/Concat.php @@ -72,7 +72,7 @@ class Concat extends AbstractMediaType /** * Saves the concatenated video in the given array, considering that the sources videos are all encoded with the same codec. * - * @param array $outputPathfile + * @param string $outputPathfile * @param string $streamCopy * * @return Concat @@ -144,6 +144,7 @@ class Concat extends AbstractMediaType $this->driver->command($commands); } catch (ExecutionFailureException $e) { $this->cleanupTemporaryFile($outputPathfile); + // TODO@v1: paste this line into an `finally` block. $this->cleanupTemporaryFile($sourcesFile); throw new RuntimeException('Unable to save concatenated video', $e->getCode(), $e); }