aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2011-03-21 14:19:09 +0200
committerLuca Barbato <lu_zero@gentoo.org>2011-03-21 20:58:33 +0100
commit895678f8239213db1d074a39653fcd78bdf87c25 (patch)
treeaa0cef7e365ed22a1888e3e77e928cdeb70cbb91 /libavformat
parent417516f63f8a9ee214ee9fa6fcb483962ea0f096 (diff)
downloadffmpeg-895678f8239213db1d074a39653fcd78bdf87c25.tar.gz
rtsp: Specify unicast for TCP interleaved streams, too
According to the RFC, the default is multicast if nothing is specified, which doesn't make sense for TCP. According to a bug report, some Axis camera models give a "400 Bad Request" error if this is omitted. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 6d538cd1dc..5b98a2846c 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -1157,7 +1157,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
continue;
snprintf(transport, sizeof(transport) - 1,
"%s/TCP;", trans_pref);
- if (rt->server_type == RTSP_SERVER_WMS)
+ if (rt->transport != RTSP_TRANSPORT_RDT)
av_strlcat(transport, "unicast;", sizeof(transport));
av_strlcatf(transport, sizeof(transport),
"interleaved=%d-%d",