Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit ef4da77

Browse files
committed
Merge pull request #1 from lluixhi/master
Fix audio being detected as video.
2 parents 04b5c04 + 846591f commit ef4da77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Detectives/ffmpegDetective.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private function ffprobeHasVideo()
9898
{
9999
foreach ($this->metadata['streams'] as $streamIndex => $stream)
100100
{
101-
if (isset($stream['codec_type']) && $stream['codec_type'] === "video")
101+
if (isset($stream['codec_type']) && $stream['codec_type'] === "video" && $stream['disposition']['attached_pic'] !== 1)
102102
{
103103
return $streamIndex;
104104
}

0 commit comments

Comments
 (0)