Fixes #5459 -- Check for "attached_pic" disposition for album art.

This commit is contained in:
Buster "Silver Eagle" Neece 2022-06-06 04:06:54 -05:00
parent 2cf2c8cd11
commit c08aaafc69
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 2 additions and 2 deletions

View File

@ -50,8 +50,8 @@ class Reader
/** @var Stream[] $videoStreams */
$videoStreams = $ffprobe->streams($path)->videos()->all();
foreach ($videoStreams as $videoStream) {
$codecName = $videoStream->get('codec_name');
if ($codecName !== 'mjpeg') {
$streamDisposition = $videoStream->get('disposition');
if (!isset($streamDisposition['attached_pic']) || 1 !== $streamDisposition['attached_pic']) {
continue;
}