rtsp: Require the transport reply from the server to match the request
authorMartin Storsjö <martin@martin.st>
Thu, 23 Dec 2010 15:05:24 +0000 (15:05 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 23 Dec 2010 15:05:24 +0000 (15:05 +0000)
commit8c579c1c604306460436dcf1523117ca3b1aca82
tree037ac27801de4220a2aba1b164089a59c06cd66b
parent81c8c1878085a05dddfeb95732731a1e790c0216
rtsp: Require the transport reply from the server to match the request

This fixes a crash if we requested TCP interleaved transport, but the
server replies with transport data for UDP. According to the RFC, the
server isn't allowed to respond with another transport type than the
one requested.

Originally committed as revision 26077 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/rtsp.c