From 0ef2575001e3602c1724d0cfa338327d1191f502 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Mon, 27 May 2024 23:44:54 +0100 Subject: [PATCH] Fix Mpeg frame verification --- src/Mp3Info.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mp3Info.php b/src/Mp3Info.php index 09798d2..bd9e650 100644 --- a/src/Mp3Info.php +++ b/src/Mp3Info.php @@ -366,7 +366,7 @@ class Mp3Info } } while ($this->fileObj->getFilePos() <= $headerSeekMax); - if (!$pos) { + if ($pos === false) { throw new Exception('No Mpeg frame header found up until pos ' . $headerSeekMax . '(0x' . dechex($headerSeekMax).')!'); }