decoder/audiofile: larger stack buffer to reduce overhead

This commit is contained in:
Max Kellermann 2018-10-19 20:04:28 +02:00
parent 3be8b02cc2
commit c63f24e58e

View File

@ -219,9 +219,7 @@ audiofile_stream_decode(DecoderClient &client, InputStream &is)
DecoderCommand cmd;
do {
/* pick 1020 since its divisible for 8,16,24, and
32-bit audio */
char chunk[1020];
uint8_t chunk[8192];
const int nframes =
afReadFrames(fh, AF_DEFAULT_TRACK, chunk,
sizeof(chunk) / frame_size);