[FFmpeg-cvslog] avocdec/snowenc: Fix left shift of negative number
Andreas Rheinhardt
git at videolan.org
Wed Sep 28 00:56:05 EEST 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Tue Sep 27 01:40:24 2022 +0200| [2664b39d54aa44ba185ea39c3933b80d9dfcb542] | committer: Andreas Rheinhardt
avocdec/snowenc: Fix left shift of negative number
Fixes the vsynth(1|2|_lena)-snow-ll FATE-tests.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2664b39d54aa44ba185ea39c3933b80d9dfcb542
---
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; 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;
}
}
}
More information about the ffmpeg-cvslog
mailing list