diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-15 17:32:57 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-01-12 23:59:59 +0100 |
commit | c246b0b4c3a3b02a714e99423cf23d59f8f81409 (patch) | |
tree | 05243f7bdf7d721bfd6ecd1340a6628c974c5643 | |
parent | daef7feb09a0dde2265d56f77de8ae03f9612d47 (diff) | |
download | ffmpeg-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.c | 2 |
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) |