From 9f8c23dc9781ede4d4a56af3cb146255f994b6eb Mon Sep 17 00:00:00 2001 From: grosroro Date: Thu, 31 May 2012 16:12:51 +0200 Subject: [PATCH] Fix width / height extraction --- src/FFMpeg/FFMpeg.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FFMpeg/FFMpeg.php b/src/FFMpeg/FFMpeg.php index 17dbc60..a373bbe 100644 --- a/src/FFMpeg/FFMpeg.php +++ b/src/FFMpeg/FFMpeg.php @@ -241,11 +241,11 @@ class FFMpeg extends Binary foreach ($result as $stream) { foreach ($stream as $name => $value) { if ($name == 'width') { - $originalWidth = substr($info, 6); + $originalWidth = $value; continue; } if ($name == 'value') { - $originalHeight = substr($info, 7); + $originalHeight = $value; continue; } }