[easytag/wip/gio: 2/4] Fix an invalid read when reading MP4 cover art
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/gio: 2/4] Fix an invalid read when reading MP4 cover art
- Date: Mon, 20 Oct 2014 22:27:16 +0000 (UTC)
commit b6c388ad25d323c3698ad6380d6c034a76f408f5
Author: David King <amigadave amigadave com>
Date: Mon Oct 20 23:08:25 2014 +0100
Fix an invalid read when reading MP4 cover art
src/tags/mp4_tag.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/tags/mp4_tag.cc b/src/tags/mp4_tag.cc
index d900713..ab7a5ce 100644
--- a/src/tags/mp4_tag.cc
+++ b/src/tags/mp4_tag.cc
@@ -221,7 +221,8 @@ mp4tag_read_file_tag (const gchar *filename,
if (extra_items.contains ("covr"))
{
const TagLib::MP4::Item cover = extra_items["covr"];
- const TagLib::MP4::CoverArt &art = cover.toCoverArtList ().front ();
+ const TagLib::MP4::CoverArtList covers = cover.toCoverArtList ();
+ const TagLib::MP4::CoverArt &art = covers.front ();
FileTag->picture = Picture_Allocate ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]