mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/wsddec: Fix undefined shift
Fixes: left shift of 1 by 31 places cannot be represented in type 'int' Fixes: 15123/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5738039235575808 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 112eb17a2bbf6d02f81fdf0743b353a6b010aedc) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
666aec9b33
commit
afd6f1a6de
@ -137,7 +137,7 @@ static int wsd_read_header(AVFormatContext *s)
|
||||
if (!(channel_assign & 1)) {
|
||||
int i;
|
||||
for (i = 1; i < 32; i++)
|
||||
if (channel_assign & (1 << i))
|
||||
if ((channel_assign >> i) & 1)
|
||||
st->codecpar->channel_layout |= wsd_to_av_channel_layoyt(s, i);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user