diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-10 17:43:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-15 17:39:04 +0100 |
commit | 1d02458c06720278698ec96f3e7c1f6ff47c01fd (patch) | |
tree | 6cfdd039246ea64e2c8e7021798d9a70ec7d06a9 | |
parent | e2285e7cc83f0429acabd09d6fc94a84d1763265 (diff) | |
download | ffmpeg-1d02458c06720278698ec96f3e7c1f6ff47c01fd.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>
(cherry picked from commit 93ac72a98dff592ffc174cfb36a8975dfbf145ae)
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 99fe1f4981..4728e429e9 100644 --- a/libavcodec/dvdec.c +++ b/libavcodec/dvdec.c @@ -333,7 +333,7 @@ static int dv_decode_video_segment(AVCodecContext *avctx, void *arg) 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; |