Mercurial > libavformat.hg
comparison sdp.c @ 5501:89259491d541 libavformat
Always set the destination address even if no port was found.
Patch by Martin Storsjo (martin AT martin DOT st)
author | lucabe |
---|---|
date | Thu, 07 Jan 2010 08:24:44 +0000 |
parents | fc0a32a383d3 |
children | f484a964bed1 |
comparison
equal
deleted
inserted
replaced
5500:fc0a32a383d3 | 5501:89259491d541 |
---|---|
301 | 301 |
302 port = 0; | 302 port = 0; |
303 ttl = 0; | 303 ttl = 0; |
304 if (n_files == 1) { | 304 if (n_files == 1) { |
305 port = sdp_get_address(dst, sizeof(dst), &ttl, ac[0]->filename); | 305 port = sdp_get_address(dst, sizeof(dst), &ttl, ac[0]->filename); |
306 if (port > 0) { | 306 if (dst[0]) { |
307 s.dst_addr = dst; | 307 s.dst_addr = dst; |
308 s.ttl = ttl; | 308 s.ttl = ttl; |
309 } | 309 } |
310 } | 310 } |
311 sdp_write_header(buff, size, &s); | 311 sdp_write_header(buff, size, &s); |