ffmpeg | branch: release/2.4 | Luca Barbato <[email protected]> | Wed Oct 15 
17:32:57 2014 +0100| [c246b0b4c3a3b02a714e99423cf23d59f8f81409] | committer: 
Vittorio Giovara

avresample: Make sure the even check does not overflow

CC: [email protected]
Bug-Id: CID 732225

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c246b0b4c3a3b02a714e99423cf23d59f8f81409
---

 libavresample/audio_mix_matrix.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavresample/audio_mix_matrix.c b/libavresample/audio_mix_matrix.c
index 487869b..5182ae1 100644
--- a/libavresample/audio_mix_matrix.c
+++ b/libavresample/audio_mix_matrix.c
@@ -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)

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to