libavformat: Use avcodec_copy_context for chained muxers
This avoids having the chained AVStream->codec point to the sameAVCodecContext owned by the outer AVStream. The downside is thatchanges to the AVCodecContext made after calling av_write_headercannot be detected automatically within the chained muxer....
Free AVStream->info in chained muxers
This fixes memory leaks in the RTSP muxer and RTP hinting in themov muxer present since SVN rev 25418.
Signed-off-by: Luca Barbato <email@example.com>
rtsp: Factorize out code for opening a chained RTP muxer
The new object file is added to the SDP demuxer in the makefile, since itis needed in both the RTSP muxer and demuxer and in the SDP demuxer, dueto the current code coupling.
Originally committed as revision 25410 to svn://svn.ffmpeg.org/ffmpeg/trunk