[Bug 797092] opusenc: segmentation fault

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Thu Sep 13 21:42:57 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=797092

--- Comment #9 from Marcos Kintschner <marcos.ktn at gmail.com> ---
Oh yeah, I'm dumb. All you have to do is casting to assign the 0x0 value to a
guint64 variable... and it's already being done in the same function:

guint64 channel_mask = 0;
...
867    gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask", 
868                       GST_TYPE_BITMASK, channel_mask, NULL);
...
872    gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask",
873                       GST_TYPE_BITMASK, channel_mask, NULL);

...
// change 0x0 to channel_mask so it won't be interpreted as 4 bytes int by the
compiler
879    gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask", 
880                       GST_TYPE_BITMASK, 0x0, NULL);

...
// same here
884 gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask", 
885                    GST_TYPE_BITMASK, 0x0, NULL);

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list