Browse Source

avresample: Make sure the even check does not overflow

CC: libav-stable@libav.org
Bug-Id: CID 732225
tags/n2.5
Luca Barbato Vittorio Giovara 10 years ago
parent
commit
963f761448
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavresample/audio_mix_matrix.c

+ 1
- 1
libavresample/audio_mix_matrix.c 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)


Loading…
Cancel
Save