diff --git a/NEWS b/NEWS index e23b1d0e5..6ec3b242d 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,8 @@ ver 0.21.26 (not yet released) * output - osx: fix crash bug - sles: support floating point samples +* decoder + - sndfile: fix lost samples at end of file ver 0.21.25 (2020/07/06) * protocol: diff --git a/src/decoder/plugins/SndfileDecoderPlugin.cxx b/src/decoder/plugins/SndfileDecoderPlugin.cxx index efcf49914..804d676b4 100644 --- a/src/decoder/plugins/SndfileDecoderPlugin.cxx +++ b/src/decoder/plugins/SndfileDecoderPlugin.cxx @@ -46,9 +46,7 @@ struct SndfileInputStream { size_t Read(void *buffer, size_t size) { /* libsndfile chokes on partial reads; therefore always force full reads */ - return decoder_read_full(client, is, buffer, size) - ? size - : 0; + return decoder_read_much(client, is, buffer, size); } };