changeset 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 da007db2fe9c
files sdp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sdp.c	Thu Jan 07 08:11:56 2010 +0000
+++ b/sdp.c	Thu Jan 07 08:24:44 2010 +0000
@@ -303,7 +303,7 @@
     ttl = 0;
     if (n_files == 1) {
         port = sdp_get_address(dst, sizeof(dst), &ttl, ac[0]->filename);
-        if (port > 0) {
+        if (dst[0]) {
             s.dst_addr = dst;
             s.ttl = ttl;
         }