Strict comparison for -vf check

This fixes an edge case where 0 and "-vf" is equal
This commit is contained in:
Robin Rolf 2018-10-31 17:37:31 +01:00 committed by GitHub
commit 554158bc06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ abstract class AbstractVideo extends Audio
$videoFilterVars = $videoFilterProcesses = array();
for ($i = 0; $i < count($commands); $i++) {
$command = $commands[$i];
if ($command == '-vf') {
if ($command === '-vf') {
$commandSplits = explode(";", $commands[$i + 1]);
if (count($commandSplits) == 1) {
$commandSplit = $commandSplits[0];