Merge pull request #643 from ThePadawan/develop
Add missing escaping of ffmpeg shell command during video thumbnail generation
This commit is contained in:
commit
e2c46a4b00
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ class VideoFileHandler extends DataHandlerExtension {
|
|||
else
|
||||
{
|
||||
$scale = 'scale="' . escapeshellarg("if(gt(a,{$w}/{$h}),{$w},-1)") . ':' . escapeshellarg("if(gt(a,{$w}/{$h}),-1,{$h})") . '"';
|
||||
$cmd = "{$ffmpeg} -y -i {$inname} -vf {$scale} -ss 00:00:00.0 -f image2 -vframes 1 {$outname}";
|
||||
$cmd = escapeshellcmd("{$ffmpeg} -y -i {$inname} -vf {$scale} -ss 00:00:00.0 -f image2 -vframes 1 {$outname}");
|
||||
}
|
||||
|
||||
exec($cmd, $output, $returnValue);
|
||||
|
|
Reference in a new issue