Use ff_url_join for assembling URLs, instead of snprintf
authorMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2010 22:35:21 +0000 (22:35 +0000)
committerMartin Storsjö <martin@martin.st>
Fri, 5 Mar 2010 22:35:21 +0000 (22:35 +0000)
commit57b5555c91a9792e3ac99102b3d1a5c44b45fdd9
treee9b6fa60b663ea3dbbf3bebc1c0c2943246293c4
parent780d7897a9c9295b43f1f0e9b49a11f99cd402c3
Use ff_url_join for assembling URLs, instead of snprintf

This ensures proper escaping of numerical IPv6 addresses.

The RTSP (de)muxer needs its own network initialization, since it isn't
a protocol and url_open hasn't been called yet.

Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/gopher.c
libavformat/http.c
libavformat/rtmpproto.c
libavformat/rtpproto.c
libavformat/rtsp.c
libavformat/rtspenc.c