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
This commit is contained in:
Vincent Penquerc'h 2014-04-08 17:34:13 +01:00
parent a78e516cbf
commit fd6a4f7372

View file

@ -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)) {