mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
Merge commit '963f76144897d3f7684d82ec21e51dd50ea1106e'
* commit '963f76144897d3f7684d82ec21e51dd50ea1106e': avresample: Make sure the even check does not overflow Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
85cf049d50
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user