changeset 3855:c9550824fd1c libavformat

Read RealChallenge1 field from the server.
author rbultje
date Sun, 31 Aug 2008 17:32:02 +0000
parents 8b2b84b5ef74
children 055f8385670c
files rtsp.c rtsp.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Sun Aug 31 17:30:15 2008 +0000
+++ b/rtsp.c	Sun Aug 31 17:32:02 2008 +0000
@@ -717,6 +717,9 @@
         reply->seq = strtol(p, NULL, 10);
     } else if (av_stristart(p, "Range:", &p)) {
         rtsp_parse_range_npt(p, &reply->range_start, &reply->range_end);
+    } else if (av_stristart(p, "RealChallenge1:", &p)) {
+        skip_spaces(&p);
+        av_strlcpy(reply->real_challenge, p, sizeof(reply->real_challenge));
     }
 }
 
--- a/rtsp.h	Sun Aug 31 17:30:15 2008 +0000
+++ b/rtsp.h	Sun Aug 31 17:32:02 2008 +0000
@@ -62,6 +62,7 @@
     RTSPTransportField transports[RTSP_MAX_TRANSPORTS];
     int seq; /**< sequence number */
     char session_id[512];
+    char real_challenge[64]; /**< the RealChallenge1 field from the server */
 } RTSPHeader;
 
 /** the callback can be used to extend the connection setup/teardown step */