diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-02 22:20:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-02 23:19:11 +0200 |
commit | f9eff31205901653d82d84aacd39e0820f0b8f17 (patch) | |
tree | 2f0a2a6849637012b995b7b9c1d6f000a4c6e414 /src/decoder | |
parent | 1d74a029a228be228b6d852d9eff028d709e1384 (diff) |
decoder/mad: use sizeof(input_buffer)
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/plugins/MadDecoderPlugin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx index 7d25121cc..88fc2998f 100644 --- a/src/decoder/plugins/MadDecoderPlugin.cxx +++ b/src/decoder/plugins/MadDecoderPlugin.cxx @@ -223,7 +223,7 @@ MadDecoder::Seek(long offset) inline bool MadDecoder::FillBuffer() { - size_t remaining = 0, length = READ_BUFFER_SIZE; + size_t remaining = 0, length = sizeof(input_buffer); unsigned char *dest = input_buffer; if (stream.next_frame != nullptr) { |