From fd6a4f7372bb66b3ef89ef4bfd3dadeced2dcea9 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Tue, 8 Apr 2014 17:34:13 +0100 Subject: [PATCH] flite: fix off by one in channel mask building The first loop would shift 1 by 64, which is either undefined or implementation defined, instead of clearing the top bit. Coverity 1197691 --- ext/flite/gstflitetestsrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/flite/gstflitetestsrc.c b/ext/flite/gstflitetestsrc.c index 5d7e1f1..b6c5667 100644 --- a/ext/flite/gstflitetestsrc.c +++ b/ext/flite/gstflitetestsrc.c @@ -189,7 +189,7 @@ gst_flite_test_src_fixate (GstBaseSrc * bsrc, GstCaps * caps) gst_structure_remove_field (structure, "channel-mask"); } else { guint64 channel_mask = 0; - gint x = 64; + gint x = 63; if (!gst_structure_get (structure, "channel-mask", GST_TYPE_BITMASK, &channel_mask, NULL)) { -- 2.7.4