Commit 93ac72a9 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dvdec: Fix "left shift of negative value -254"

Fixes: dvdec_left_shift.avi
Found-by: 's avatarPiotr Bandurski <ami_stuff@o2.pl>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 030c7f03
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment