aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-05-21 18:49:32 +0000
committerReinhard Tartler <siretart@tauware.de>2010-05-21 18:49:32 +0000
commitfcaba8390965d62b36a0aa4fe73cb9c6544ffd15 (patch)
treeb73c4c056a5f26dbbe4e793a016570be35f289cc
parentdaf864016d302c69d9fc6dfeb4c2c7cdbf153356 (diff)
downloadffmpeg-fcaba8390965d62b36a0aa4fe73cb9c6544ffd15.tar.gz
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
-rw-r--r--ffserver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c
index e81245d9d3..7dcc9b23fd 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -2946,6 +2946,8 @@ static int prepare_sdp_description(FFStream *stream, uint8_t **pbuffer,
snprintf(avc->filename, 1024, "rtp://%s:%d?multicast=1?ttl=%d",
inet_ntoa(stream->multicast_ip),
stream->multicast_port, stream->multicast_ttl);
+ } else {
+ snprintf(avc->filename, 1024, "rtp://0.0.0.0");
}
for(i = 0; i < stream->nb_streams; i++) {