aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2014-10-15 17:32:57 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-01-12 23:59:59 +0100
commitc246b0b4c3a3b02a714e99423cf23d59f8f81409 (patch)
tree05243f7bdf7d721bfd6ecd1340a6628c974c5643
parentdaef7feb09a0dde2265d56f77de8ae03f9612d47 (diff)
downloadffmpeg-c246b0b4c3a3b02a714e99423cf23d59f8f81409.tar.gz
avresample: Make sure the even check does not overflow
CC: libav-stable@libav.org Bug-Id: CID 732225
-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)