Set a default duration to 0 to fix issue 333 (#334)
This commit is contained in:
parent
2ddf9ae377
commit
edf87d9cb1
1 changed files with 2 additions and 1 deletions
|
|
@ -79,6 +79,7 @@ class ExtractMultipleFramesFilter implements VideoFilterInterface
|
|||
public function apply(Video $video, VideoInterface $format)
|
||||
{
|
||||
$commands = array();
|
||||
$duration = 0;
|
||||
|
||||
try {
|
||||
// Get the duration of the video
|
||||
|
|
@ -105,7 +106,7 @@ class ExtractMultipleFramesFilter implements VideoFilterInterface
|
|||
|
||||
// Set the number of digits to use in the exported filenames
|
||||
$nbImages = ceil( $duration * $nbFramesPerSecond );
|
||||
|
||||
|
||||
if($nbImages < 100)
|
||||
$nbDigitsInFileNames = "02";
|
||||
elseif($nbImages < 1000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue