[FFmpeg-cvslog] lavc/vc2enc_dwt: Avoid left-shifting a negative value.
Carl Eugen Hoyos
git at videolan.org
Sun Aug 11 01:07:00 EEST 2019
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Tue Jul 2 11:38:14 2019 +0200| [ac457a3bc589d4b6d2438942354f4f69f07a598e] | committer: Carl Eugen Hoyos
lavc/vc2enc_dwt: Avoid left-shifting a negative value.
Fixes ticket #7985.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ac457a3bc589d4b6d2438942354f4f69f07a598e
---
libavcodec/vc2enc_dwt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/vc2enc_dwt.c b/libavcodec/vc2enc_dwt.c
index d22af8a313..a8d3f1c669 100644
--- a/libavcodec/vc2enc_dwt.c
+++ b/libavcodec/vc2enc_dwt.c
@@ -66,7 +66,7 @@ static void vc2_subband_dwt_97(VC2TransformContext *t, dwtcoef *data,
*/
for (y = 0; y < synth_height; y++) {
for (x = 0; x < synth_width; x++)
- synthl[x] = datal[x] << 1;
+ synthl[x] = datal[x] * 2;
synthl += synth_width;
datal += stride;
}
More information about the ffmpeg-cvslog
mailing list