Merge branch 'brr'

This commit is contained in:
tildearrow 2022-12-05 19:17:05 -05:00
commit b94493dcc0
2 changed files with 3 additions and 1 deletions

View file

@ -126,6 +126,8 @@ void brrEncodeBlock(const short* buf, unsigned char* out, unsigned char range, u
break;
}
if (nextDec>32767) nextDec=32767;
if (nextDec<-32768) nextDec=-32768;
nextDec&=0x7fff;
if (nextDec&0x4000) nextDec|=0xffff8000;