summaryrefslogtreecommitdiff
path: root/libavcodec/snowenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-27 01:40:24 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-09-27 23:55:44 +0200
commit2664b39d54aa44ba185ea39c3933b80d9dfcb542 (patch)
treee7a3fab27d4be8c11e374c34a3607d070d260436 /libavcodec/snowenc.c
parent59cb0bd23d61f6ea3bfd86558346e2720aba7f06 (diff)
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>
Diffstat (limited to 'libavcodec/snowenc.c')
-rw-r--r--libavcodec/snowenc.c2
1 files changed, 1 insertions, 1 deletions
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; 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;
}
}
}