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>
pull/388/head
Andreas Rheinhardt 2 years ago
parent 59cb0bd23d
commit 2664b39d54
  1. 2
      libavcodec/snowenc.c

@ -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;
}
}
}

Loading…
Cancel
Save