summaryrefslogtreecommitdiff
path: root/src/decoder
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-30 21:53:50 -0800
committerMax Kellermann <max@musicpd.org>2020-01-31 21:21:39 +0100
commit80a0cf694f152f94488b9c5cf2bd35518f149f73 (patch)
tree8e0b6996aff00a9309a034de6b35490dc47608c5 /src/decoder
parent0c9e25b3c40b24e01a993daa5cf8bdb9ac30e034 (diff)
MadDecoderPlugin: fix bad printf format
max_frames is size_t, not unsigned long. Fixes GCC warning.
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/MadDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx
index 649cca78c..b21f7cba9 100644
--- a/src/decoder/plugins/MadDecoderPlugin.cxx
+++ b/src/decoder/plugins/MadDecoderPlugin.cxx
@@ -793,7 +793,7 @@ MadDecoder::DecodeFirstFrame(Tag *tag) noexcept
if (max_frames > 8 * 1024 * 1024) {
FormatWarning(mad_domain,
- "mp3 file header indicates too many frames: %lu",
+ "mp3 file header indicates too many frames: %zu",
max_frames);
return false;
}