From 963f76144897d3f7684d82ec21e51dd50ea1106e Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Wed, 15 Oct 2014 17:32:57 +0100 Subject: avresample: Make sure the even check does not overflow CC: libav-stable@libav.org Bug-Id: CID 732225 --- libavresample/audio_mix_matrix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavresample') 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) -- cgit v1.2.3