aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorLuca Abeni <lucabe72@email.it>2007-09-03 09:00:40 +0000
committerLuca Abeni <lucabe72@email.it>2007-09-03 09:00:40 +0000
commit5f2cbb53b439ae332a5a0cbb19d5862f7bac1646 (patch)
tree1bee13f8c2ddbcec57b3303b8419d237e4bc0966 /libavformat/sdp.c
parent1c746a490deb6939fce5cd207e1ad7bb54820f02 (diff)
downloadffmpeg-5f2cbb53b439ae332a5a0cbb19d5862f7bac1646.tar.gz
Fill the buffer with 0 before writing an SDP in it
Originally committed as revision 10287 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c
index 1062c8d3e2..98dcb07299 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 */