[FFmpeg-cvslog] r21057 - trunk/libavformat/sdp.c

lucabe subversion
Thu Jan 7 09:24:44 CET 2010


Author: lucabe
Date: Thu Jan  7 09:24:44 2010
New Revision: 21057

Log:
Always set the destination address even if no port was found.
Patch by Martin Storsjo (martin AT martin DOT st)

Modified:
   trunk/libavformat/sdp.c

Modified: trunk/libavformat/sdp.c
==============================================================================
--- trunk/libavformat/sdp.c	Thu Jan  7 09:11:56 2010	(r21056)
+++ trunk/libavformat/sdp.c	Thu Jan  7 09:24:44 2010	(r21057)
@@ -303,7 +303,7 @@ int avf_sdp_create(AVFormatContext *ac[]
     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;
         }



More information about the ffmpeg-cvslog mailing list