diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-07-11 23:05:53 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-07-11 23:05:53 +0200 |
commit | 0fff7f039c148a91dde41772d2dc26dd0efb5f89 (patch) | |
tree | dcd5583fde5ad787a598575b34a327316b8b0700 /libavformat/rtspdec.c | |
parent | 43d36599fe3330913c6be9da5519dee048263dc9 (diff) | |
download | ffmpeg-0fff7f039c148a91dde41772d2dc26dd0efb5f89.tar.gz |
Supply a User-Agent header when opening rtsp streams.
Some rtsp servers like the IP Cam IcyBox IB-CAM2002 need it.
Fixes ticket #2761.
Reported, analyzed and tested by trac user imavra.
Diffstat (limited to 'libavformat/rtspdec.c')
-rw-r--r-- | libavformat/rtspdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/rtspdec.c b/libavformat/rtspdec.c index da571a8ee8..99a21cdd14 100644 --- a/libavformat/rtspdec.c +++ b/libavformat/rtspdec.c @@ -574,6 +574,8 @@ int ff_rtsp_setup_input_streams(AVFormatContext *s, RTSPMessageHeader *reply) /* describe the stream */ snprintf(cmd, sizeof(cmd), "Accept: application/sdp\r\n"); + av_strlcatf(cmd, sizeof(cmd), + "User-Agent: %s\r\n", rt->user_agent); if (rt->server_type == RTSP_SERVER_REAL) { /** * The Require: attribute is needed for proper streaming from |