Fix width / height extraction
This commit is contained in:
parent
f73d94fd74
commit
9f8c23dc97
1 changed files with 2 additions and 2 deletions
|
|
@ -241,11 +241,11 @@ class FFMpeg extends Binary
|
||||||
foreach ($result as $stream) {
|
foreach ($result as $stream) {
|
||||||
foreach ($stream as $name => $value) {
|
foreach ($stream as $name => $value) {
|
||||||
if ($name == 'width') {
|
if ($name == 'width') {
|
||||||
$originalWidth = substr($info, 6);
|
$originalWidth = $value;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ($name == 'value') {
|
if ($name == 'value') {
|
||||||
$originalHeight = substr($info, 7);
|
$originalHeight = $value;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue