aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/mad_plugin.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder/mad_plugin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/decoder/mad_plugin.c b/src/decoder/mad_plugin.c
index 1bda418e0..ee07ae5a4 100644
--- a/src/decoder/mad_plugin.c
+++ b/src/decoder/mad_plugin.c
@@ -434,10 +434,10 @@ static void mp3_parse_id3(struct mp3_data *data, size_t tagsize,
while (count < tagsize) {
size_t len = tagsize - count;
- if (len > sizeof(buffer))
- len = sizeof(buffer);
-
char ignored[1024];
+ if (len > sizeof(ignored))
+ len = sizeof(ignored);
+
len = decoder_read(data->decoder, data->input_stream,
ignored, len);
if (len == 0)