From d78a534a0baf2105261716f2fa86963c64ec3e8d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 9 Jul 2017 15:29:56 +0900 Subject: [PATCH] audio/internal/convert: Bug fix: invalid size comparison --- audio/internal/convert/resampling.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/internal/convert/resampling.go b/audio/internal/convert/resampling.go index a16976aa4..a56a05503 100644 --- a/audio/internal/convert/resampling.go +++ b/audio/internal/convert/resampling.go @@ -65,7 +65,7 @@ func (r *Resampling) src(i int) (float64, float64, error) { if i < 0 { return 0, 0, nil } - if r.Size()/4 <= int64(i) { + if r.size/4 <= int64(i) { return 0, 0, nil } nextPos := int64(i) / resamplingBufferSize