From 6aeec7d337691dd6e66778aafc362ff500e4f77e Mon Sep 17 00:00:00 2001 From: Romain Biard Date: Wed, 11 Jan 2017 10:21:14 -0300 Subject: [PATCH] We make sure that the destination folder has a trailing slash --- src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php b/src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php index 48323ce..004e263 100644 --- a/src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php +++ b/src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php @@ -37,6 +37,12 @@ class ExtractMultipleFramesFilter implements VideoFilterInterface { $this->priority = $priority; $this->frameRate = $frameRate; + + // Make sure that the destination folder has a trailing slash + if(strcmp( substr($destinationFolder, -1), "/") != 0) + $destinationFolder .= "/"; + + // Set the destination folder $this->destinationFolder = $destinationFolder; }