diff options
author | Martin Storsjö <martin@martin.st> | 2010-05-17 21:34:13 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2010-05-17 21:34:13 +0400 |
commit | 43d09fafd42c0c2b8f7c96d4abfaed01464c7966 (patch) | |
tree | 5f1c0248189329bc368acc67c708bace7331107f /ffserver.c | |
parent | f40f329e9219a8dd7e585345a8ea294fa66562b9 (diff) |
ffserver: Make sure a destination URL is set when creating the SDP
Debugged by Howard Chu, hyc at highlandsun dot com.
Originally committed as revision 23151 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 2 |
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++) { |