From 2664b39d54aa44ba185ea39c3933b80d9dfcb542 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 27 Sep 2022 01:40:24 +0200 Subject: [PATCH] avocdec/snowenc: Fix left shift of negative number Fixes the vsynth(1|2|_lena)-snow-ll FATE-tests. Reviewed-by: Michael Niedermayer Signed-off-by: Andreas Rheinhardt --- libavcodec/snowenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/snowenc.c b/libavcodec/snowenc.c index b647fc9016..c5ff50639e 100644 --- a/libavcodec/snowenc.c +++ b/libavcodec/snowenc.c @@ -1814,7 +1814,7 @@ redo_frame: if(s->qlog == LOSSLESS_QLOG){ for(y=0; yspatial_idwt_buffer[y*w + x]<<=FRAC_BITS; + s->spatial_idwt_buffer[y*w + x] *= 1 << FRAC_BITS; } } }