mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
opusenc: fix segmentation fault at x86 version
The argument 0x0 is interpreted by the x86 compiler as a 32-bit int, but it is consumed as a 64-bit uint causing a segmentation fault. We need to explicit cast it to guint64 in order for the va_list to be built correctly. https://bugzilla.gnome.org/show_bug.cgi?id=797092
This commit is contained in:
parent
75f2532da7
commit
e05e8117e7
1 changed files with 2 additions and 2 deletions
|
@ -877,12 +877,12 @@ gst_opus_enc_get_sink_template_caps (void)
|
|||
* treated as a set of individual mono channels */
|
||||
s = gst_structure_copy (s2);
|
||||
gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask",
|
||||
GST_TYPE_BITMASK, 0x0, NULL);
|
||||
GST_TYPE_BITMASK, G_GUINT64_CONSTANT(0), NULL);
|
||||
gst_caps_append_structure (caps, s);
|
||||
|
||||
s = gst_structure_copy (s1);
|
||||
gst_structure_set (s, "channels", G_TYPE_INT, i, "channel-mask",
|
||||
GST_TYPE_BITMASK, 0x0, NULL);
|
||||
GST_TYPE_BITMASK, G_GUINT64_CONSTANT(0), NULL);
|
||||
gst_caps_append_structure (caps, s);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue