Commit 6de73bcf authored by lucabe's avatar lucabe

Always set the destination address even if no port was found.

Patch by Martin Storsjo (martin AT martin DOT st)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21057 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 638c790e
...@@ -303,7 +303,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size) ...@@ -303,7 +303,7 @@ int avf_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
ttl = 0; ttl = 0;
if (n_files == 1) { if (n_files == 1) {
port = sdp_get_address(dst, sizeof(dst), &ttl, ac[0]->filename); port = sdp_get_address(dst, sizeof(dst), &ttl, ac[0]->filename);
if (port > 0) { if (dst[0]) {
s.dst_addr = dst; s.dst_addr = dst;
s.ttl = ttl; s.ttl = ttl;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment