diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-06 22:31:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-06 23:23:39 +0200 |
commit | 8a8335de030aa6cb6356bb16c7d3aefc5a80e362 (patch) | |
tree | 5426adc2c41735bd58a1a4309a8c89fbde2ed901 | |
parent | e1b60aad77c27ed5d4dfc11e5e6a05a38c70489d (diff) | |
download | ffmpeg-streaming-8a8335de030aa6cb6356bb16c7d3aefc5a80e362.zip ffmpeg-streaming-8a8335de030aa6cb6356bb16c7d3aefc5a80e362.tar.gz |
avcodec/dds: Fix runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 1380/clusterfuzz-testcase-minimized-650122545122508
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/dds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c index 84b440f..468763e 100644 --- a/libavcodec/dds.c +++ b/libavcodec/dds.c @@ -39,7 +39,7 @@ #define DDPF_FOURCC (1 << 2) #define DDPF_PALETTE (1 << 5) -#define DDPF_NORMALMAP (1 << 31) +#define DDPF_NORMALMAP (1U << 31) enum DDSPostProc { DDS_NONE = 0, |