Handled preferred cover file names (same as track's filename, then cover, then front). fixes #71

This commit is contained in:
emeric
2020-06-26 10:56:04 +02:00
parent 6546f44cb2
commit 8a38d130da
3 changed files with 52 additions and 21 deletions
+1 -1
View File
@@ -215,7 +215,7 @@ MediaFile::getAttachedPictures(std::size_t nbMaxPictures) const
LMS_LOG(AV, ERROR) << "CODEC ID " << avstream->codecpar->codec_id << " not handled in mime type conversion";
}
AVPacket pkt = avstream->attached_pic;
const AVPacket& pkt {avstream->attached_pic};
std::copy(pkt.data, pkt.data + pkt.size, std::back_inserter(picture.data));