From 32486a99a448139de3414c1e3b1196128b564b13 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 18 Aug 2018 09:37:51 +0200 Subject: [PATCH] previous ad_soundfile code was correct --- source/modules/audio_decoder/ad_soundfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/modules/audio_decoder/ad_soundfile.c b/source/modules/audio_decoder/ad_soundfile.c index 4817ca3ce..a73ee8df9 100644 --- a/source/modules/audio_decoder/ad_soundfile.c +++ b/source/modules/audio_decoder/ad_soundfile.c @@ -101,7 +101,7 @@ static int64_t ad_seek_sndfile(void *sf, int64_t pos) { static ssize_t ad_read_sndfile(void *sf, float* d, size_t len) { sndfile_audio_decoder *priv = (sndfile_audio_decoder*) sf; if (!priv) return -1; - return sf_read_float (priv->sffile, d, len) < 0 ? -1 : (ssize_t)len; + return sf_read_float (priv->sffile, d, len); } static int ad_eval_sndfile(const char *f) {