aboutsummaryrefslogtreecommitdiffstats
path: root/libavresample
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-10-15 17:32:57 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2014-10-18 16:15:10 +0100
commit963f76144897d3f7684d82ec21e51dd50ea1106e (patch)
treeeb73638fce30437d18b3c299723d485bd3456b46 /libavresample
parent088eca28164c8cd3b72b0c3d3f9e3fe5ee5cb28f (diff)
downloadffmpeg-963f76144897d3f7684d82ec21e51dd50ea1106e.tar.gz
avresample: Make sure the even check does not overflow
CC: libav-stable@libav.org Bug-Id: CID 732225
Diffstat (limited to 'libavresample')
-rw-r--r--libavresample/audio_mix_matrix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavresample/audio_mix_matrix.c b/libavresample/audio_mix_matrix.c
index 487869b5fd..5182ae1bf9 100644
--- a/libavresample/audio_mix_matrix.c
+++ b/libavresample/audio_mix_matrix.c
@@ -60,7 +60,7 @@
static av_always_inline int even(uint64_t layout)
{
- return (!layout || (layout & (layout - 1)));
+ return (!layout || !!(layout & (layout - 1)));
}
static int sane_layout(uint64_t layout)