Skip to content

Commit 9749bb6

Browse files
authored
Update ProcessBuilder.php
Correctly escape ffmpeg shell command so that % symbol is not stripped out in case of multi-output.
1 parent 951a3a5 commit 9749bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPVideoToolkit/ProcessBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ protected function _combineArgumentList($commands)
151151
foreach ($commands as $argument)
152152
{
153153
// the array ois a flag for a raw argument
154-
$command_string .= (is_array($argument) === true ? $argument : escapeshellarg($argument)).' ';
154+
$command_string .= (is_array($argument) === true ? $argument : ProcessUtils::escapeArgument($argument)).' ';
155155
}
156156
}
157157

0 commit comments

Comments
 (0)