diff options
author | Max Kellermann <max@musicpd.org> | 2018-10-19 20:04:28 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-10-19 20:04:28 +0200 |
commit | c63f24e58e7ec55c8462fc0396b87c8e6e67378e (patch) | |
tree | 44bb1b0be2844b7690811d2a0f54643cc58aff5e | |
parent | 3be8b02cc2c9404b43ad0368563b4d7e7e74de6d (diff) |
decoder/audiofile: larger stack buffer to reduce overhead
-rw-r--r-- | src/decoder/plugins/AudiofileDecoderPlugin.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/decoder/plugins/AudiofileDecoderPlugin.cxx b/src/decoder/plugins/AudiofileDecoderPlugin.cxx index 3f2ee77c0..5c20e3dfd 100644 --- a/src/decoder/plugins/AudiofileDecoderPlugin.cxx +++ b/src/decoder/plugins/AudiofileDecoderPlugin.cxx @@ -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); |