Skip to content

Commit

Permalink
Merge pull request WWBN#238 from akhilleusuggo/patch-4
Browse files Browse the repository at this point in the history
PHP Parse error: syntax error, unexpected '{'
  • Loading branch information
DanielnetoDotCom authored Apr 19, 2020
2 parents 6f28cd7 + 26d4cbd commit 88be02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/Encoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ static function getImage($pathFileName, $seconds = 5) {
$duration = static::parseSecondsToDuration($seconds);
$time_start = microtime(true);
// placing ss before the input is faster https://stackoverflow.com/a/27573049
eval('$ffmpeg ="ffmpeg -ss {$duration} -i "{$pathFileName}" -vframes 1 -y {$destinationFile}";');
eval('$ffmpeg ="ffmpeg -ss {$duration} -i \"{$pathFileName}\" -vframes 1 -y \"{$destinationFile}\"";');
error_log("getImage: {$ffmpeg}");
exec($ffmpeg . " < /dev/null 2>&1", $output, $return_val);
$time_end = microtime(true);
Expand Down

0 comments on commit 88be02f

Please sign in to comment.