summaryrefslogtreecommitdiff
path: root/libavformat/sdp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2010-01-07 08:24:44 +0000
committerLuca Abeni <lucabe72@email.it>2010-01-07 08:24:44 +0000
commit9ea7f03aa08151d8e490d83d3fff3f9d5f1a3b3b (patch)
treef7f53c6568a19d96c3690de80b8897fe7ecf9f96 /libavformat/sdp.c
parentc47b0738b559c3ded0e2941b89a970f54d73b283 (diff)
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
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r--libavformat/sdp.c2
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;
}