diff options
author | Martin Storsjö <martin@martin.st> | 2010-01-07 08:24:44 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2010-01-07 08:24:44 +0000 |
commit | 9ea7f03aa08151d8e490d83d3fff3f9d5f1a3b3b (patch) | |
tree | f7f53c6568a19d96c3690de80b8897fe7ecf9f96 | |
parent | c47b0738b559c3ded0e2941b89a970f54d73b283 (diff) | |
download | ffmpeg-9ea7f03aa08151d8e490d83d3fff3f9d5f1a3b3b.tar.gz |
Always set the destination address even if no port was found.
Patch by Martin Storsjo (martin AT martin DOT st)
Originally committed as revision 21057 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/sdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index c3ba3652dc..819173eba9 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -303,7 +303,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) 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; } |