diff options
author | Martin Storsjö <martin@martin.st> | 2011-03-21 14:19:09 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2011-03-21 20:58:33 +0100 |
commit | 895678f8239213db1d074a39653fcd78bdf87c25 (patch) | |
tree | aa0cef7e365ed22a1888e3e77e928cdeb70cbb91 /libavformat/rtsp.c | |
parent | 417516f63f8a9ee214ee9fa6fcb483962ea0f096 (diff) | |
download | ffmpeg-streaming-895678f8239213db1d074a39653fcd78bdf87c25.zip ffmpeg-streaming-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/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 6d538cd..5b98a28 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", |