[FFmpeg-cvslog] avresample: Make sure the even check does not overflow
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Oct 19 13:39:36 CEST 2014
On 18.10.2014, at 22:53, git at videolan.org (Luca Barbato) wrote:
>
> static av_always_inline int even(uint64_t layout)
> {
> - return (!layout || (layout & (layout - 1)));
> + return (!layout || !!(layout & (layout - 1)));
Sorry, I feel stupid.
Can someone help me, why does this make any difference?
More information about the ffmpeg-cvslog
mailing list