From: Michael Olbrich Date: Fri, 17 May 2013 10:37:59 +0000 (+0200) Subject: rtpmp4apay: clear config buffer before using it X-Git-Tag: 1.1.1~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d1c56376d672b4209fa8162046ed764fa2892e87;p=platform%2Fupstream%2Fgst-plugins-good.git rtpmp4apay: clear config buffer before using it This is necessary because parts of the memory are only modified with "|=" https://bugzilla.gnome.org/show_bug.cgi?id=700514 --- diff --git a/gst/rtp/gstrtpmp4apay.c b/gst/rtp/gstrtpmp4apay.c index 5676ebff7..17a80a81a 100644 --- a/gst/rtp/gstrtpmp4apay.c +++ b/gst/rtp/gstrtpmp4apay.c @@ -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)