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
This commit is contained in:
Michael Olbrich 2013-05-17 12:37:59 +02:00 committed by Tim-Philipp Müller
parent 55caa99ccd
commit d1c56376d6

View 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)