From 904ecbfc37cfdd0aa86c4cf280ac3f05f52465e3 Mon Sep 17 00:00:00 2001 From: Fabian Giesen Date: Sun, 4 Jul 2021 03:15:43 -0700 Subject: [PATCH] stb_vorbis: Remove spurious assignment to val This is definitely unnecessary, or at least I can't find anything in the Vorbis spec that would indicate anything special happening here. Fixes issue #816. --- stb_vorbis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 8288d09..8bda695 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -3872,8 +3872,7 @@ static int start_decoder(vorb *f) unsigned int div=1; for (k=0; k < c->dimensions; ++k) { int off = (z / div) % c->lookup_values; - float val = mults[off]; - val = mults[off]*c->delta_value + c->minimum_value + last; + float val = mults[off]*c->delta_value + c->minimum_value + last; c->multiplicands[j*c->dimensions + k] = val; if (c->sequence_p) last = val;