Mercurial > libavformat.hg
diff rtsp.h @ 5574:016f3d4fe56d libavformat
Use the control URI from the SDP (if present) rather than the input filename,
if present. This fixes playback of a number of MS-RTSP streams, mostly these
for which playback contains a session key in the URI. Fixes issue 1697.
Patch by Alan Steremberg <$firstname dot $lastname () gmail com>.
author | rbultje |
---|---|
date | Fri, 22 Jan 2010 16:04:15 +0000 |
parents | 715913c5514f |
children | 7fa188f69c22 |
line wrap: on
line diff
--- a/rtsp.h Thu Jan 21 20:49:27 2010 +0000 +++ b/rtsp.h Fri Jan 22 16:04:15 2010 +0000 @@ -266,6 +266,11 @@ * data packet in the bytecontext for each incoming RTSP packet. */ uint64_t asf_pb_pos; //@} + + /** some MS RTSP streams contain a URL in the SDP that we need to use + * for all subsequent RTSP requests, rather than the input URI; in + * other cases, this is a copy of AVFormatContext->filename. */ + char control_uri[1024]; } RTSPState; /**