decoder/mad: use sizeof(input_buffer)

This commit is contained in:
Max Kellermann 2019-08-02 22:20:15 +02:00
parent 1d74a029a2
commit f9eff31205

View File

@ -223,7 +223,7 @@ MadDecoder::Seek(long offset)
inline bool inline bool
MadDecoder::FillBuffer() MadDecoder::FillBuffer()
{ {
size_t remaining = 0, length = READ_BUFFER_SIZE; size_t remaining = 0, length = sizeof(input_buffer);
unsigned char *dest = input_buffer; unsigned char *dest = input_buffer;
if (stream.next_frame != nullptr) { if (stream.next_frame != nullptr) {