diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-08-02 22:29:16 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-11-15 12:25:45 +0100 |
commit | dbc9034dc2d715fc415e5747ded7e8ca1ece533c (patch) | |
tree | 6b3183772d4d9a0aaf6a8cceddd92d07720986b8 /libavutil/x86/pixelutils_init.c | |
parent | c3ab134903c75df7c562b15ed6a40fa251d3b856 (diff) | |
download | ffmpeg-dbc9034dc2d715fc415e5747ded7e8ca1ece533c.tar.gz |
libavcodec/iff: Use unsigned to avoid undefined behaviour
The initialization of the uint32_t plane32_lut matrix uses left shifts
of the form 1 << plane; plane can be as big as 31 which means that this
is undefined behaviour as 1 will be simply an int. So make it unsigned
to avoid this.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f12e662a3d3f489eec887b5f2ab20a550caed9cf)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavutil/x86/pixelutils_init.c')
0 files changed, 0 insertions, 0 deletions