mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
avcodec/ivi_dsp: Fix runtime error: left shift of negative value -2
Fixes: 1839/clusterfuzz-testcase-minimized-6238490993885184 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
114e871621
commit
357f2316a0
@ -393,8 +393,8 @@ void ff_ivi_inverse_haar_4x4(const int32_t *in, int16_t *out, ptrdiff_t pitch,
|
|||||||
if (flags[i]) {
|
if (flags[i]) {
|
||||||
/* pre-scaling */
|
/* pre-scaling */
|
||||||
shift = !(i & 2);
|
shift = !(i & 2);
|
||||||
sp1 = src[0] << shift;
|
sp1 = src[0] * (1 << shift);
|
||||||
sp2 = src[4] << shift;
|
sp2 = src[4] * (1 << shift);
|
||||||
INV_HAAR4( sp1, sp2, src[8], src[12],
|
INV_HAAR4( sp1, sp2, src[8], src[12],
|
||||||
dst[0], dst[4], dst[8], dst[12],
|
dst[0], dst[4], dst[8], dst[12],
|
||||||
t0, t1, t2, t3, t4);
|
t0, t1, t2, t3, t4);
|
||||||
|
Loading…
Reference in New Issue
Block a user