Adjust filescanner to ignore streams with embedded artwork

This commit is contained in:
ejurgensen 2013-12-29 20:44:32 +01:00
parent c8a631212c
commit b42b1f98d7

View File

@ -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);