diff options
Diffstat (limited to 'audio-libs/libid3tag/patches/libid3tag-0.15.1b-tag.patch')
-rw-r--r-- | audio-libs/libid3tag/patches/libid3tag-0.15.1b-tag.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio-libs/libid3tag/patches/libid3tag-0.15.1b-tag.patch b/audio-libs/libid3tag/patches/libid3tag-0.15.1b-tag.patch new file mode 100644 index 0000000000..2badfb35cf --- /dev/null +++ b/audio-libs/libid3tag/patches/libid3tag-0.15.1b-tag.patch @@ -0,0 +1,17 @@ +--- tag.c.orig Fri Apr 18 18:14:33 2003 ++++ tag.c Mon Sep 26 22:29:24 2005 +@@ -714,9 +714,12 @@ + + frame = id3_tag_findframe(tag, ID3_FRAME_TRACK, 0); + if (frame) { +- unsigned int track; ++ id3_ucs4_t const *string; ++ unsigned int track = 0; + +- track = id3_ucs4_getnumber(id3_field_getstrings(&frame->fields[1], 0)); ++ string = id3_field_getstrings(&frame->fields[1], 0); ++ if (string) ++ track = id3_ucs4_getnumber(string); + if (track > 0 && track <= 0xff) { + ptr[-2] = 0; + ptr[-1] = track; |