mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avresample: Make sure the even check does not overflow
CC: libav-stable@libav.org Bug-Id: CID 732225
This commit is contained in:
parent
088eca2816
commit
963f761448
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user