diff options
Diffstat (limited to 'plugins/wavpack')
-rw-r--r-- | plugins/wavpack/wavpack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/wavpack/wavpack.c b/plugins/wavpack/wavpack.c index 39f2e66f..eafed0d4 100644 --- a/plugins/wavpack/wavpack.c +++ b/plugins/wavpack/wavpack.c @@ -198,16 +198,16 @@ wv_free (DB_fileinfo_t *_info) { static int wv_read (DB_fileinfo_t *_info, char *bytes, int size) { wvctx_t *info = (wvctx_t *)_info; - int initsize = size; int currentsample = WavpackGetSampleIndex (info->ctx); int samplesize = _info->fmt.channels * _info->fmt.bps / 8; if (size / samplesize + currentsample > info->endsample) { size = (info->endsample - currentsample + 1) * samplesize; - trace ("wv: size truncated to %d bytes, cursample=%d, endsample=%d\n", size, currentsample, info->endsample); + trace ("wv: size truncated to %d bytes (%d samples), cursample=%d, endsample=%d\n", size, info->endsample - currentsample + 1, currentsample, info->endsample); if (size <= 0) { return 0; } } + int initsize = size; int n; if (WavpackGetMode (info->ctx) & MODE_FLOAT) { _info->fmt.is_float = 1; |