Browse code

ffserver: Make sure a destination URL is set when creating the SDP

Debugged by Howard Chu, hyc at highlandsun dot com.


backport r23151 by mstorsjo


Originally committed as revision 23224 to svn://svn.ffmpeg.org/ffmpeg/branches/0.6

Reinhard Tartler authored on 2010/05/22 03:49:32
Showing 1 changed files
... ...
@@ -2946,6 +2946,8 @@ static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer,
2946 2946
         snprintf(avc->filename, 1024, "rtp://%s:%d?multicast=1?ttl=%d",
2947 2947
                  inet_ntoa(stream->multicast_ip),
2948 2948
                  stream->multicast_port, stream->multicast_ttl);
2949
+    } else {
2950
+        snprintf(avc->filename, 1024, "rtp://0.0.0.0");
2949 2951
     }
2950 2952
 
2951 2953
     for(i = 0; i < stream->nb_streams; i++) {