From f9eff31205901653d82d84aacd39e0820f0b8f17 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 2 Aug 2019 22:20:15 +0200 Subject: [PATCH] decoder/mad: use sizeof(input_buffer) --- src/decoder/plugins/MadDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {