From b42b1f98d75a6034406f18a84a36b17196228ec8 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 29 Dec 2013 20:44:32 +0100 Subject: [PATCH] Adjust filescanner to ignore streams with embedded artwork --- src/filescanner_ffmpeg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/filescanner_ffmpeg.c b/src/filescanner_ffmpeg.c index dbbb3207..69ef2ded 100644 --- a/src/filescanner_ffmpeg.c +++ b/src/filescanner_ffmpeg.c @@ -385,6 +385,12 @@ scan_metadata_ffmpeg(char *file, struct media_file_info *mfi) #else case CODEC_TYPE_VIDEO: #endif + if (ctx->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) + { + DPRINTF(E_DBG, L_SCAN, "Found embedded artwork (stream %d)\n", i); + + break; + } if (!video_stream) { DPRINTF(E_DBG, L_SCAN, "File has video (stream %d)\n", i);