[SCM] libav/experimental: Fill the buffer with 0 before writing an SDP in it

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:06:17 UTC 2013


The following commit has been merged in the experimental branch:
commit 5f2cbb53b439ae332a5a0cbb19d5862f7bac1646
Author: Luca Abeni <lucabe72 at email.it>
Date:   Mon Sep 3 09:00:40 2007 +0000

    Fill the buffer with 0 before writing an SDP in it
    
    Originally committed as revision 10287 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 1062c8d..98dcb07 100644
--- a/libavformat/sdp.c
+++ b/libavformat/sdp.c
@@ -175,6 +175,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
     int i, j, port, ttl;
     char dst[32];
 
+    memset(buff, 0, size);
     memset(&s, 0, sizeof(struct sdp_session_level));
     s.user = "-";
     s.src_addr = "127.0.0.1";    /* FIXME: Properly set this */

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list