From 283ef5b1632ec955d5656d2ab68897be5443f690 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 22 Feb 2016 11:58:54 +0100 Subject: [PATCH] tag/Id3Load: use ID3_TAG_QUERYSIZE instead of integer literal --- src/tag/Id3Load.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tag/Id3Load.cxx b/src/tag/Id3Load.cxx index 51f7f282d..f637339f8 100644 --- a/src/tag/Id3Load.cxx +++ b/src/tag/Id3Load.cxx @@ -140,7 +140,7 @@ tag_id3_find_from_end(FILE *stream) auto v1tag = tag_id3_read(stream, -128, SEEK_END); /* Get the id3v2 tag size from the footer (located before v1tag) */ - int tagsize = get_id3v2_footer_size(stream, (v1tag ? -128 : 0) - 10, SEEK_END); + int tagsize = get_id3v2_footer_size(stream, (v1tag ? -128 : 0) - ID3_TAG_QUERYSIZE, SEEK_END); if (tagsize >= 0) return v1tag;