games/snes: fix BRR decoding with filters 2 and 3

s1 and s2 should store the last and next to last output, but were set
in the wrong order, causing them both to be the last output. This
breaks filters 2 and 3, which both utilize s2.
front
Michael Forney 2021-02-17 11:19:39 +01:00
parent 79cf39c53a
commit 52b54097bf
1 changed files with 1 additions and 1 deletions

View File

@ -275,8 +275,8 @@ decode(vctxt *p)
d = (s16int)(clamp16(d) << 1);
p->buf[p->bp] = d;
p->buf[p->bp++ + 12] = d;
s1 = d;
s2 = s1;
s1 = d;
brr <<= 4;
}
if(p->bp == 12)