diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-15 17:32:57 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-10-18 16:15:10 +0100 |
commit | 963f76144897d3f7684d82ec21e51dd50ea1106e (patch) | |
tree | eb73638fce30437d18b3c299723d485bd3456b46 | |
parent | 088eca28164c8cd3b72b0c3d3f9e3fe5ee5cb28f (diff) | |
download | ffmpeg-963f76144897d3f7684d82ec21e51dd50ea1106e.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) |