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) {