mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-03 14:32:16 +02:00
avcodec/takdec: Fix runtime error: left shift of negative value -360
Fixes: 1739/clusterfuzz-testcase-minimized-5399237707694080 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
64d0dad93c
commit
0ce7cf0c86
@ -653,7 +653,7 @@ static int decorrelate(TAKDecContext *s, int c1, int c2, int length)
|
||||
s->residues[i ] * s->filter[0];
|
||||
}
|
||||
|
||||
v = (av_clip_intp2(v >> 10, 13) << dshift) - *p1;
|
||||
v = av_clip_intp2(v >> 10, 13) * (1 << dshift) - *p1;
|
||||
*p1++ = v;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user