mirror of https://git.ffmpeg.org/ffmpeg.git
Read RealChallenge1 field from the server.
Originally committed as revision 15124 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e077604335
commit
30aa6aed4a
|
@ -717,6 +717,9 @@ void rtsp_parse_line(RTSPHeader *reply, const char *buf)
|
||||||
reply->seq = strtol(p, NULL, 10);
|
reply->seq = strtol(p, NULL, 10);
|
||||||
} else if (av_stristart(p, "Range:", &p)) {
|
} else if (av_stristart(p, "Range:", &p)) {
|
||||||
rtsp_parse_range_npt(p, &reply->range_start, &reply->range_end);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -62,6 +62,7 @@ typedef struct RTSPHeader {
|
||||||
RTSPTransportField transports[RTSP_MAX_TRANSPORTS];
|
RTSPTransportField transports[RTSP_MAX_TRANSPORTS];
|
||||||
int seq; /**< sequence number */
|
int seq; /**< sequence number */
|
||||||
char session_id[512];
|
char session_id[512];
|
||||||
|
char real_challenge[64]; /**< the RealChallenge1 field from the server */
|
||||||
} RTSPHeader;
|
} RTSPHeader;
|
||||||
|
|
||||||
/** the callback can be used to extend the connection setup/teardown step */
|
/** the callback can be used to extend the connection setup/teardown step */
|
||||||
|
|
Loading…
Reference in New Issue