diff --git a/src/FFMpeg/Media/Concat.php b/src/FFMpeg/Media/Concat.php index 81c8a7c..092e3a3 100644 --- a/src/FFMpeg/Media/Concat.php +++ b/src/FFMpeg/Media/Concat.php @@ -105,7 +105,7 @@ class Concat extends AbstractMediaType if($count_videos != 0) $line .= "\n"; - $line .= "file ".$videoPath; + $line .= "file " . addcslashes($videoPath, '\'"\\\0 '); fwrite($fileStream, $line);