mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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>
This commit is contained in:
parent
417516f63f
commit
895678f823
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user