diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-10 17:43:56 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-01-31 00:25:20 +0100 |
commit | d8cb5887c1cab236a36ddb4949610b67e16f57ed (patch) | |
tree | fa90824b0edb08000908a0da3f43213e6777163e | |
parent | 5c0d8a8387772bc9309e75a8974105031359330d (diff) | |
download | ffmpeg-d8cb5887c1cab236a36ddb4949610b67e16f57ed.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 7de7e5b4ce..ccf326923d 100644 --- a/libavcodec/dvdec.c +++ b/libavcodec/dvdec.c @@ -221,7 +221,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; |