diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-10 17:43:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-10 17:44:33 +0100 |
commit | 93ac72a98dff592ffc174cfb36a8975dfbf145ae (patch) | |
tree | a41407ae5f0a76f89f40c145f80702d899d35583 | |
parent | 030c7f0309ec0e3cadb990408b4bb9b7fd739425 (diff) | |
download | ffmpeg-93ac72a98dff592ffc174cfb36a8975dfbf145ae.tar.gz |
avcodec/dvdec: Fix "left shift of negative value -254"
Fixes: dvdec_left_shift.avi
Found-by: Piotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/dvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c index b75bcb9a1f..0b4c1bc287 100644 --- a/libavcodec/dvdec.c +++ b/libavcodec/dvdec.c @@ -347,7 +347,7 @@ retry: dct_mode * 22 * 64 + (quant + ff_dv_quant_offset[class1]) * 64]; } - dc = dc << 2; + dc = dc * 4; /* convert to unsigned because 128 is not added in the * standard IDCT */ dc += 1024; |