Standard fixing
This commit is contained in:
parent
cdeed25ada
commit
e1688c7966
2 changed files with 11 additions and 11 deletions
|
|
@ -26,8 +26,8 @@ class ClipFilter implements VideoFilterInterface
|
|||
|
||||
public function __construct(TimeCode $start, TimeCode $duration = null, $priority = 0)
|
||||
{
|
||||
$this->start = $start;
|
||||
$this->duration = $duration;
|
||||
$this->start = $start;
|
||||
$this->duration = $duration;
|
||||
$this->priority = $priority;
|
||||
}
|
||||
|
||||
|
|
@ -60,13 +60,13 @@ class ClipFilter implements VideoFilterInterface
|
|||
*/
|
||||
public function apply(Video $video, VideoInterface $format)
|
||||
{
|
||||
$commands = array('-ss', (string) $this->start);
|
||||
|
||||
if($this->duration !== null) {
|
||||
$commands[] = '-t';
|
||||
$commands[] = (string) $this->duration;
|
||||
}
|
||||
|
||||
return $commands;
|
||||
$commands = array('-ss', (string) $this->start);
|
||||
|
||||
if ($this->duration !== null) {
|
||||
$commands[] = '-t';
|
||||
$commands[] = (string) $this->duration;
|
||||
}
|
||||
|
||||
return $commands;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ class VideoFilters extends AudioFilters
|
|||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Clips (cuts) the video.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue