Commit 283ef5b1 authored by Max Kellermann's avatar Max Kellermann

tag/Id3Load: use ID3_TAG_QUERYSIZE instead of integer literal

parent 09a188bf
...@@ -140,7 +140,7 @@ tag_id3_find_from_end(FILE *stream) ...@@ -140,7 +140,7 @@ tag_id3_find_from_end(FILE *stream)
auto v1tag = tag_id3_read(stream, -128, SEEK_END); auto v1tag = tag_id3_read(stream, -128, SEEK_END);
/* Get the id3v2 tag size from the footer (located before v1tag) */ /* 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) if (tagsize >= 0)
return v1tag; return v1tag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment