mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
a78e516cbf
commit
fd6a4f7372
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue