Commit 963f7614 authored by Luca Barbato's avatar Luca Barbato Committed by Vittorio Giovara

avresample: Make sure the even check does not overflow

CC: libav-stable@libav.org
Bug-Id: CID 732225
parent 088eca28
...@@ -60,7 +60,7 @@ ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment