aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.h
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-11 23:05:53 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-07-11 23:05:53 +0200
commit0fff7f039c148a91dde41772d2dc26dd0efb5f89 (patch)
treedcd5583fde5ad787a598575b34a327316b8b0700 /libavformat/rtsp.h
parent43d36599fe3330913c6be9da5519dee048263dc9 (diff)
downloadffmpeg-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/rtsp.h')
-rw-r--r--libavformat/rtsp.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtsp.h b/libavformat/rtsp.h
index 4af3507d73..9e6e23785a 100644
--- a/libavformat/rtsp.h
+++ b/libavformat/rtsp.h
@@ -399,6 +399,11 @@ typedef struct RTSPState {
* Size of RTP packet reordering queue.
*/
int reordering_queue_size;
+
+ /**
+ * User-Agent string
+ */
+ char *user_agent;
} RTSPState;
#define RTSP_FLAG_FILTER_SRC 0x1 /**< Filter incoming UDP packets -