From 554158bc062882621e76b11283c3a9bda8d9f5b4 Mon Sep 17 00:00:00 2001 From: Robin Rolf Date: Wed, 31 Oct 2018 17:37:31 +0100 Subject: [PATCH] Strict comparison for -vf check This fixes an edge case where 0 and "-vf" is equal --- src/FFMpeg/Media/AbstractVideo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FFMpeg/Media/AbstractVideo.php b/src/FFMpeg/Media/AbstractVideo.php index 2b11bd4..e02bbe9 100644 --- a/src/FFMpeg/Media/AbstractVideo.php +++ b/src/FFMpeg/Media/AbstractVideo.php @@ -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];