Earlier, if the server didn't indicate a ttl, we explicitly set 0
as ttl, making the written packets not to be sent at all (after
making the ttl actually be set for read-write url contexts).
---
 libavformat/rtsp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index dd79407..dd94cc8 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1363,6 +1363,8 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const 
char *host, int port,
                 port      = rtsp_st->sdp_port;
                 ttl       = rtsp_st->sdp_ttl;
             }
+            if (ttl <= 0)
+                ttl = 16;
             getnameinfo((struct sockaddr*) &addr, sizeof(addr),
                         namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
             ff_url_join(url, sizeof(url), "rtp", NULL, namebuf,
-- 
1.7.3.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to