Skip to content

Commit ca8eea7

Browse files
author
Romain Biard
committed
We fix the usage of
1 parent 8bdc839 commit ca8eea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function apply(Video $video, VideoInterface $format)
8181

8282
try {
8383
// Get the duration of the video
84-
$duration = $this->getFormat()->get('duration');
84+
$duration = $format()->get('duration');
8585

8686
// Get the number of frames per second we have to extract.
8787
if(preg_match('/(\d+)(?:\s*)([\+\-\*\/])(?:\s*)(\d+)/', $this->frameRate, $matches) !== FALSE){

0 commit comments

Comments
 (0)