avresample: Make sure the even check does not overflow

CC: libav-stable@libav.org
Bug-Id: CID 732225
This commit is contained in:
Luca Barbato 2014-10-15 17:32:57 +01:00 committed by Vittorio Giovara
parent daef7feb09
commit c246b0b4c3
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@
static av_always_inline int even(uint64_t layout) 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) static int sane_layout(uint64_t layout)