comparison sdp.c @ 2422:f3a8f7d55bd1 libavformat

Fill the buffer with 0 before writing an SDP in it
author lucabe
date Mon, 03 Sep 2007 09:00:40 +0000
parents 2adc9f64ecfb
children 776b5c2a1bf1
comparison
equal deleted inserted replaced
2421:b08793768c30 2422:f3a8f7d55bd1
173 { 173 {
174 struct sdp_session_level s; 174 struct sdp_session_level s;
175 int i, j, port, ttl; 175 int i, j, port, ttl;
176 char dst[32]; 176 char dst[32];
177 177
178 memset(buff, 0, size);
178 memset(&s, 0, sizeof(struct sdp_session_level)); 179 memset(&s, 0, sizeof(struct sdp_session_level));
179 s.user = "-"; 180 s.user = "-";
180 s.src_addr = "127.0.0.1"; /* FIXME: Properly set this */ 181 s.src_addr = "127.0.0.1"; /* FIXME: Properly set this */
181 s.name = ac[0]->title; 182 s.name = ac[0]->title;
182 183