avocdec/snowenc: Fix left shift of negative number

Fixes the vsynth(1|2|_lena)-snow-ll FATE-tests.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-09-27 01:40:24 +02:00
parent 59cb0bd23d
commit 2664b39d54
1 changed files with 1 additions and 1 deletions

View File

@ -1814,7 +1814,7 @@ redo_frame:
if(s->qlog == LOSSLESS_QLOG){
for(y=0; y<h; y++){
for(x=0; x<w; x++){
s->spatial_idwt_buffer[y*w + x]<<=FRAC_BITS;
s->spatial_idwt_buffer[y*w + x] *= 1 << FRAC_BITS;
}
}
}