[FFmpeg-cvslog] r15124 - in trunk/libavformat: rtsp.c rtsp.h

rbultje subversion
Sun Aug 31 19:32:02 CEST 2008


Author: rbultje
Date: Sun Aug 31 19:32:02 2008
New Revision: 15124

Log:
Read RealChallenge1 field from the server.



Modified:
   trunk/libavformat/rtsp.c
   trunk/libavformat/rtsp.h

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	(original)
+++ trunk/libavformat/rtsp.c	Sun Aug 31 19:32:02 2008
@@ -717,6 +717,9 @@ void rtsp_parse_line(RTSPHeader *reply, 
         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));
     }
 }
 

Modified: trunk/libavformat/rtsp.h
==============================================================================
--- trunk/libavformat/rtsp.h	(original)
+++ trunk/libavformat/rtsp.h	Sun Aug 31 19:32:02 2008
@@ -62,6 +62,7 @@ typedef struct RTSPHeader {
     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 */




More information about the ffmpeg-cvslog mailing list