Skip to content

Commit

Permalink
fix album art detection
Browse files Browse the repository at this point in the history
  • Loading branch information
vibhavsinha committed Aug 15, 2023
1 parent 5baa9a2 commit b2b867f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FFMpeg/FFMpeg.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function open($pathfile)
$hasVideo = false;
foreach ($streams->videos() as $videoStream) {
$videoDisposition = $videoStream->get('disposition');
if ($videoDisposition['attached_pic'] !== 1) {
if (!$videoDisposition || $videoDisposition['attached_pic'] !== 1) {
$hasVideo = true;
break;
}
Expand Down

0 comments on commit b2b867f

Please sign in to comment.