Skip to content

Commit

Permalink
minor refactor: break to not iterate unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhavsinha committed Mar 14, 2020
1 parent 6153808 commit 7b57207
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/FFMpeg/FFMpeg.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function open($pathfile)
$videoDisposition = $videoStream->get('disposition');
if ($videoDisposition['attached_pic'] !== 1) {
$hasVideo = true;
break;
}
}
if ($hasVideo) {
Expand Down

0 comments on commit 7b57207

Please sign in to comment.