rtpmp4apay: clear config buffer before using it
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 17 May 2013 10:37:59 +0000 (12:37 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Sat, 18 May 2013 09:57:56 +0000 (10:57 +0100)
This is necessary because parts of the memory are only modified with "|="

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

gst/rtp/gstrtpmp4apay.c

index 5676ebf..17a80a8 100644 (file)
@@ -294,6 +294,8 @@ gst_rtp_mp4a_pay_setcaps (GstRTPBasePayload * payload, GstCaps * caps)
       cbuffer = gst_buffer_new_and_alloc (map.size + 2);
       gst_buffer_map (cbuffer, &cmap, GST_MAP_WRITE);
 
+      memset (cmap.data, 0, map.size + 2);
+
       /* Create StreamMuxConfig according to ISO/IEC 14496-3:
        *
        * audioMuxVersion           == 0 (1 bit)